Compare commits

...

3 Commits

Author SHA1 Message Date
eb84b1d28b 0.88 2024-12-08 09:18:49 +08:00
0c2ed12a53 0.88 2024-12-08 09:13:24 +08:00
1a2682f86e 0.88 2024-12-08 09:13:15 +08:00

@ -1174,12 +1174,19 @@ class OrderLogic extends Logic
$order_data['district'] = $address['district_id'];
$order_data['address'] = $address['address'];
$order_data['mobile'] = $address['telephone'];
$order_data['goods_price'] = round(0.88*$goods_price,2);
$act_price = 1;
if(isset($post['act_id'])){
if($post['act_id'] != 1){
$act_price = 0.88;
}
}
$order_data['goods_price'] = round($act_price*$goods_price,2);
$order_data['order_amount'] = round($act_price*$order_amount,2);
$order_data['discount_amount'] = round($act_price*$discount_amount,2);
$order_data['member_amount'] = round($act_price*$member_amount,2);
$order_data['total_amount'] = round($act_price*$total_amount,2);
$order_data['shipping_price'] = $shipping_price;
$order_data['order_amount'] = round(0.88*$order_amount,2);
$order_data['discount_amount'] = round(0.88*$discount_amount,2);
$order_data['member_amount'] = round(0.88*$member_amount,2);
$order_data['total_amount'] = round(0.88*$total_amount,2);
$order_data['total_num'] = array_sum(array_column($goods, 'num'));
$order_data['user_remark'] = $remark;
$order_data['distribution_money'] = 0;