商城订单支付问题修复

This commit is contained in:
2025-10-21 08:09:49 +08:00
parent 05461af673
commit 6e3970ca68

View File

@@ -219,10 +219,11 @@ class ProductOrderController extends BaseAppController
}
$count = count($granular['list']);
}
if ($prescription['category'] === 2) {
$ProductOrder['total_pay_price'] = $ProductOrder['trans_expenses'];
$ProductOrder['items_price'] = 0;
if ($ProductOrder['p_id'] !== 0) {
if ($prescription['category'] === 2) {
$ProductOrder['total_pay_price'] = $ProductOrder['trans_expenses'];
$ProductOrder['items_price'] = 0;
}
}
$ProductOrder['count'] = $count;