|
@@ -382,11 +382,8 @@ class ProductController extends BaseController
|
|
|
if (empty($val)) {
|
|
if (empty($val)) {
|
|
|
util::fail("参数错误!");
|
|
util::fail("参数错误!");
|
|
|
}
|
|
}
|
|
|
- $data = [
|
|
|
|
|
- $type => $val
|
|
|
|
|
- ];
|
|
|
|
|
|
|
+ $data = [$type => $val];
|
|
|
ProductClass::updateByCondition($where, $data);
|
|
ProductClass::updateByCondition($where, $data);
|
|
|
- ProductClass::autoPriceById($id);
|
|
|
|
|
|
|
|
|
|
//2021.7.6 linqh 如果是首店,则更新全部分店
|
|
//2021.7.6 linqh 如果是首店,则更新全部分店
|
|
|
ProductClass::updateSyncProduct($id, $this->shopId, $data);
|
|
ProductClass::updateSyncProduct($id, $this->shopId, $data);
|