支付修复Bug
This commit is contained in:
@@ -144,7 +144,10 @@ class ProductOrderSubmitForm extends BaseModel
|
||||
if(bccomp($total_fee,0,2) <= 0){ //无需支付
|
||||
$t = \Yii::$app->db->beginTransaction();
|
||||
try {
|
||||
$this->paid(['order_no' => $productOrder->order_no]);
|
||||
$this->paid([
|
||||
'order_no' => $productOrder->order_no,
|
||||
'pay_order_no' => $productOrder->order_no,
|
||||
]);
|
||||
$t->commit();
|
||||
}catch (Exception $exception){
|
||||
$t->rollback();
|
||||
@@ -196,7 +199,10 @@ class ProductOrderSubmitForm extends BaseModel
|
||||
// 无需支付
|
||||
$t = \Yii::$app->db->beginTransaction();
|
||||
try {
|
||||
$this->paid(['order_no' => $productOrder->order_no]);
|
||||
$this->paid([
|
||||
'order_no' => $productOrder->order_no,
|
||||
'pay_order_no' => $productOrder->order_no,
|
||||
]);
|
||||
$t->commit();
|
||||
}catch (Exception $exception){
|
||||
$t->rollback();
|
||||
|
||||
Reference in New Issue
Block a user