diff --git a/FlyCube/Api/Controller/PayController.class.php b/FlyCube/Api/Controller/PayController.class.php index 1b89d3f..df11010 100644 --- a/FlyCube/Api/Controller/PayController.class.php +++ b/FlyCube/Api/Controller/PayController.class.php @@ -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) { // 捕获并处理可能的异常