Sfoglia il codice sorgente

修复支付问题

chenxiqiang 6 anni fa
parent
commit
c50fb4efe8

+ 1
- 1
manage-server/app/Http/Controllers/PaymentController.php Vedi File

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

Loading…
Annulla
Salva