Procházet zdrojové kódy

修复支付问题

chenxiqiang před 7 roky
rodič
revize
c50fb4efe8

+ 1
- 1
manage-server/app/Http/Controllers/PaymentController.php Zobrazit soubor

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…
Zrušit
Uložit