dever 3 년 전
부모
커밋
a9c17a2d66
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      app/shop/src/Excel.php

+ 2 - 2
app/shop/src/Excel.php

@@ -98,7 +98,7 @@ class Excel
                             //$v2['code'] = '-' . $v2['code'];
                         }
                         $p = $v2['price'];
-                        if (is_numeric($v2['num'])) {
+                        if (is_numeric($v2['num']) && is_numeric($v2['price'])) {
                             $p = $v2['price']*$v2['num'];
                         }
                         $d = array
@@ -232,7 +232,7 @@ class Excel
                             //$v2['code'] = '-' . $v2['code'];
                         }
                         $p = $v2['price'];
-                        if (is_numeric($v2['num'])) {
+                        if (is_numeric($v2['num']) && is_numeric($v2['price'])) {
                             $p = $v2['price']*$v2['num'];
                         }
                         $d = array