Loading src/Tools/Drawer.php +4 −4 Original line number Original line Diff line number Diff line Loading @@ -154,14 +154,14 @@ class Drawer * @param int $h 图片高度 * @param int $h 图片高度 * @param string $p 单元格索引 * @param string $p 单元格索引 * @param Worksheet $sheet * @param Worksheet $sheet * @param bool $addBoard * @param int $boardPx */ */ public function draw2Excel($path, $h, $p, $sheet, $addBoard = true) public function draw2Excel($path, $h, $p, $sheet, $boardPx = 0) { { try { try { $path = $this->parseImagePath($path); $path = $this->parseImagePath($path); if ($addBoard) { if ($boardPx) { $path = $this->addBoard($path); $path = $this->addBoard($path, $boardPx); } } $drawing = new Drawing(); $drawing = new Drawing(); $drawing->setPath($path)->setCoordinates($p)->setHeight($h)->setWorksheet($sheet); $drawing->setPath($path)->setCoordinates($p)->setHeight($h)->setWorksheet($sheet); Loading src/Tools/ExcelImporter.php +2 −2 Original line number Original line Diff line number Diff line Loading @@ -116,7 +116,7 @@ class ExcelImporter } } /** /** * 必填检测数据 * 检测必填数据 * @param $requires * @param $requires * @param $errorCount * @param $errorCount * @throws \PhpOffice\PhpSpreadsheet\Exception * @throws \PhpOffice\PhpSpreadsheet\Exception Loading @@ -136,7 +136,7 @@ class ExcelImporter } } /** /** * 必填检测数据 * 检测数字类型数据 * @param $data * @param $data * @param $errorCount * @param $errorCount * @throws \PhpOffice\PhpSpreadsheet\Exception * @throws \PhpOffice\PhpSpreadsheet\Exception Loading Loading
src/Tools/Drawer.php +4 −4 Original line number Original line Diff line number Diff line Loading @@ -154,14 +154,14 @@ class Drawer * @param int $h 图片高度 * @param int $h 图片高度 * @param string $p 单元格索引 * @param string $p 单元格索引 * @param Worksheet $sheet * @param Worksheet $sheet * @param bool $addBoard * @param int $boardPx */ */ public function draw2Excel($path, $h, $p, $sheet, $addBoard = true) public function draw2Excel($path, $h, $p, $sheet, $boardPx = 0) { { try { try { $path = $this->parseImagePath($path); $path = $this->parseImagePath($path); if ($addBoard) { if ($boardPx) { $path = $this->addBoard($path); $path = $this->addBoard($path, $boardPx); } } $drawing = new Drawing(); $drawing = new Drawing(); $drawing->setPath($path)->setCoordinates($p)->setHeight($h)->setWorksheet($sheet); $drawing->setPath($path)->setCoordinates($p)->setHeight($h)->setWorksheet($sheet); Loading
src/Tools/ExcelImporter.php +2 −2 Original line number Original line Diff line number Diff line Loading @@ -116,7 +116,7 @@ class ExcelImporter } } /** /** * 必填检测数据 * 检测必填数据 * @param $requires * @param $requires * @param $errorCount * @param $errorCount * @throws \PhpOffice\PhpSpreadsheet\Exception * @throws \PhpOffice\PhpSpreadsheet\Exception Loading @@ -136,7 +136,7 @@ class ExcelImporter } } /** /** * 必填检测数据 * 检测数字类型数据 * @param $data * @param $data * @param $errorCount * @param $errorCount * @throws \PhpOffice\PhpSpreadsheet\Exception * @throws \PhpOffice\PhpSpreadsheet\Exception Loading