支付回调信息修复
This commit is contained in:
@@ -275,6 +275,23 @@ class ProductOrderSubmitForm extends BaseModel
|
||||
return true;
|
||||
}
|
||||
|
||||
if ($ProductOrder->order_type === 2) {
|
||||
|
||||
$ProductOrder->is_pay = 1;
|
||||
$ProductOrder->status = ProductOrderEnum::WAIT_SEND;
|
||||
$ProductOrder->pay_time = time();
|
||||
$ProductOrder->type = isset($data['pay_type']) ? $data['pay_type'] : 0;
|
||||
$ProductOrder->saveOrFail();
|
||||
|
||||
$paymentProduct_Order->transaction_id = $transaction_id;
|
||||
$paymentProduct_Order->is_pay = 1;
|
||||
$paymentProduct_Order->pay_type = $ProductOrder->type;
|
||||
$paymentProduct_Order->saveOrFail();
|
||||
// 订单支付进行分账
|
||||
\Yii::$app->queue->delay(0)->push(new ProductOrderPaidJob([
|
||||
'orderId' => $ProductOrder->id,
|
||||
]));
|
||||
} else {
|
||||
if($ProductOrder->is_online != 1){
|
||||
$Prescription = $ProductOrder->prescription;
|
||||
$Prescription->is_pay = 1;
|
||||
@@ -328,6 +345,8 @@ class ProductOrderSubmitForm extends BaseModel
|
||||
'status' => 1
|
||||
]));
|
||||
}
|
||||
}
|
||||
|
||||
$t->commit();
|
||||
} catch (\Exception $e) {
|
||||
$t->rollBack();
|
||||
|
||||
Reference in New Issue
Block a user