|
@@ -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('不允许的类型');
|