@@ -227,7 +227,7 @@ class ProductController extends BaseController
if (empty($data) || empty($type)) {
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);
} else {
util::fail('不允许的类型');