This commit is contained in:
szdot 2024-06-05 21:20:28 +08:00
commit 717854ba8f

View File

@ -92,7 +92,8 @@ class PayController extends PublicController
$orderDb = D('order'); // 实例化订单模型
$data['status'] = 'pending'; //付款状态
$data['pay_sn'] = $result['transaction_id']; //支付订单号
$orderDb->where($where)->data($data)->save(); //更改订单
$a = $orderDb->where($where)->data($data)->save(); //更改订单
$this->publish('demo', $a);
}
} catch (\Exception $e) {
// 捕获并处理可能的异常