支付修复Bug
This commit is contained in:
@@ -133,6 +133,9 @@ class ProductOrderSubmitForm extends BaseModel
|
||||
if ($productOrder->delivery_method === 0) {
|
||||
$paymentProductOrder->amount = $productOrder['trans_expenses'];
|
||||
$total_fee = $productOrder['trans_expenses'];
|
||||
} elseif ($productOrder->delivery_method === 1) {
|
||||
$paymentProductOrder->amount = 0;
|
||||
$total_fee = 0;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -141,7 +144,6 @@ class ProductOrderSubmitForm extends BaseModel
|
||||
if(bccomp($total_fee,0,2) <= 0){ //无需支付
|
||||
$t = \Yii::$app->db->beginTransaction();
|
||||
try {
|
||||
ds(123);
|
||||
$this->paid(['order_no' => $productOrder->order_no]);
|
||||
$t->commit();
|
||||
}catch (Exception $exception){
|
||||
|
||||
Reference in New Issue
Block a user