|
@@ -534,6 +534,11 @@ class ProductClass extends BaseClass
|
|
|
{
|
|
{
|
|
|
$id = $product->id ?? 0;
|
|
$id = $product->id ?? 0;
|
|
|
$shopId = $product->shopId ?? 0;
|
|
$shopId = $product->shopId ?? 0;
|
|
|
|
|
+
|
|
|
|
|
+ //改价后取消特价 shish 20210902
|
|
|
|
|
+ $product->discountPrice = 0;
|
|
|
|
|
+ $product->save();
|
|
|
|
|
+
|
|
|
//2021.7.6 linqh 首店改价,同步到各个分店
|
|
//2021.7.6 linqh 首店改价,同步到各个分店
|
|
|
$res = ProductClass::updateByCondition(['id' => $id], ['price' => $price, 'priceLabel' => $priceLabel]);
|
|
$res = ProductClass::updateByCondition(['id' => $id], ['price' => $price, 'priceLabel' => $priceLabel]);
|
|
|
self::updateSyncProduct($id, $shopId, ['price' => $price, 'priceLabel' => $priceLabel]);
|
|
self::updateSyncProduct($id, $shopId, ['price' => $price, 'priceLabel' => $priceLabel]);
|