|
|
@@ -182,9 +182,9 @@ class GoodsClass extends BaseClass
|
|
|
CategoryClass::counters(['goodsNum' => 1], ['id' => $categoryIdList]);
|
|
|
$data['shopImg'] = json_encode($data['shopImg']);
|
|
|
$data['py'] = $py;
|
|
|
- if (isset($data['stock']) && $data['stock'] === '') {
|
|
|
- $data['stock'] = Goods::FULL_STOCK;
|
|
|
- }
|
|
|
+ //库存和属性暂时不可修改
|
|
|
+ unset($data['stock']);
|
|
|
+ unset($data['flower']);
|
|
|
self::updateById($id, $data);
|
|
|
}
|
|
|
|