dever 3 years ago
parent
commit
a9c17a2d66
1 changed files with 2 additions and 2 deletions
  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