feat(OrderLogic): 更新订单总价计算方式

This commit is contained in:
mkm 2024-06-11 14:03:58 +08:00
parent 9fd9eee04c
commit d6bd3b9e97
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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;
}
}