Compare commits
No commits in common. "a08d11f69c07e99f66a5c207e149ffa6795469e2" and "0a046509dd7e51a1ad34f5b3f169aa12404d5b3e" have entirely different histories.
a08d11f69c
...
0a046509dd
@ -39,13 +39,6 @@ class StoreProductPriceLogic extends BaseLogic
|
||||
try {
|
||||
$model = StoreProductPrice::create($params);
|
||||
|
||||
StoreProductPriceList::where('product_id', $model['product_id'])->update([
|
||||
'supply_rate' => $params['purchase_lv'] * 100,
|
||||
'merchant_rate' => $params['cost_lv'] * 100,
|
||||
'vip_rate' => $params['vip_lv'] * 100,
|
||||
'price_rate' => $params['price_lv'] * 100,
|
||||
]);
|
||||
|
||||
$productPrice = StoreProduct::where('id', $model['product_id'])->value('vip_price');
|
||||
if ($productPrice != $model['vip_price']) {
|
||||
SqlChannelPriceLog($model['product_id'], 43, $productPrice, $model['vip_price']);
|
||||
|
Loading…
x
Reference in New Issue
Block a user