diff --git a/FlyCube/MpApi/Controller/PayController.class.php b/FlyCube/MpApi/Controller/PayController.class.php index 00338a0..8f60efd 100644 --- a/FlyCube/MpApi/Controller/PayController.class.php +++ b/FlyCube/MpApi/Controller/PayController.class.php @@ -105,9 +105,8 @@ class PayController extends PublicController $where['order_sn'] = $result['resource']['ciphertext']['out_trade_no']; // 获取订单号 $orderDb = D('order'); // 实例化订单模型 $data['main_status'] = '已退款'; // 更新订单状态为已退款 - $data['refunded_time'] = time(); // 标记已退款时间 + $data['refunded_time'] = time(); // 标记退款时间 $data['refund_sn'] = $result['resource']['ciphertext']['refund_id']; // 退款单号 - $data['refund_price'] = $result['resource']['ciphertext']['amount']['refund'] / 100; // 退款金额,单位:元 // 更新订单 $orderDb->where($where)->data($data)->save(); }