Jelajahi Sumber

库存预警

shish 5 tahun lalu
induk
melakukan
de81fe97d6
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      app-ghs/controllers/ProductController.php

+ 1 - 1
app-ghs/controllers/ProductController.php

@@ -227,7 +227,7 @@ class ProductController extends BaseController
         if (empty($data) || empty($type)) {
         if (empty($data) || empty($type)) {
             util::fail("参数错误");
             util::fail("参数错误");
         }
         }
-        if (in_array($type, ['inTurn', 'addPrice', 'cost', 'weight', 'ratio', 'delStatus', 'ratio','price'])) {
+        if (in_array($type, ['inTurn', 'addPrice', 'cost', 'weight', 'ratio', 'delStatus', 'ratio', 'price', 'stockWarning'])) {
             $data = json_decode($data, true);
             $data = json_decode($data, true);
         } else {
         } else {
             util::fail('不允许的类型');
             util::fail('不允许的类型');