diff --git a/FlyCube/Api/Controller/PayController.class.php b/FlyCube/Api/Controller/PayController.class.php index a540a82..6d144a5 100644 --- a/FlyCube/Api/Controller/PayController.class.php +++ b/FlyCube/Api/Controller/PayController.class.php @@ -106,7 +106,7 @@ class PayController extends PublicController if ($result['resource']['ciphertext']['trade_state'] == 'SUCCESS') { $where['order_sn'] = $result['resource']['ciphertext']['out_trade_no']; // 获取订单号 $orderDb = D('order'); // 实例化订单模型 - $data['status'] = '已付款'; // 更新订单状态为已支付 + $data['main_status'] = '已付款'; // 更新订单状态为已支付 $data['paid_time'] = time(); //标记付款时间 $data['pay_sn'] = $result['resource']['ciphertext']['transaction_id']; // 支付订单号 // 更新订单