feat(OrderLogic): 更新订单总价计算方式
This commit is contained in:
parent
9fd9eee04c
commit
d6bd3b9e97
@ -76,7 +76,7 @@ class OrderLogic extends BaseLogic
|
||||
|
||||
$cart_select[$k]['price'] = $find['price'];
|
||||
$cart_select[$k]['total_price'] = bcmul($v['cart_num'], $find['price'], 2); //订单总价
|
||||
$cart_select[$k]['deduction_price'] =self::$activity_price;
|
||||
$cart_select[$k]['deduction_price'] =self::$activity_price;//抵扣金额
|
||||
if (isset($check) && $check['status'] == 1) {
|
||||
//零售价*折扣率
|
||||
$activity_price = bcmul($find['price'], 0.9, 2);
|
||||
|
@ -66,7 +66,7 @@ class PushPlatformPrintSend implements Consumer
|
||||
}
|
||||
public function onConsumeFailure(\Throwable $exception, $package)
|
||||
{
|
||||
Log::error('打印队列推送失败。order_id:'. $package['data']['order_id'].',msg:'.$exception->getMessage());
|
||||
Log::error('打印队列推送失败。order_id:'. $package['data']['id'].',msg:'.$exception->getMessage());
|
||||
return $package;
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user