瀏覽代碼

修复支付问题

chenxiqiang 6 年之前
父節點
當前提交
c50fb4efe8
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      manage-server/app/Http/Controllers/PaymentController.php

+ 1
- 1
manage-server/app/Http/Controllers/PaymentController.php 查看文件

106
             if ($message['return_code'] === 'SUCCESS') { // return_code 表示通信状态,不代表支付状态
106
             if ($message['return_code'] === 'SUCCESS') { // return_code 表示通信状态,不代表支付状态
107
                 // 用户是否支付成功
107
                 // 用户是否支付成功
108
                 if (array_get($message, 'result_code') === 'SUCCESS') {
108
                 if (array_get($message, 'result_code') === 'SUCCESS') {
109
-                    $order->paid_at = time(); // 更新支付时间为当前时间
109
+                    $order->paid_at = Carbon::now(); // 更新支付时间为当前时间
110
                     $order->status = 2;
110
                     $order->status = 2;
111
 
111
 
112
                     // 用户支付失败
112
                     // 用户支付失败

Loading…
取消
儲存