Parcourir la source

修复支付问题

chenxiqiang il y a 7 ans
Parent
révision
c50fb4efe8
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1
    1
      manage-server/app/Http/Controllers/PaymentController.php

+ 1
- 1
manage-server/app/Http/Controllers/PaymentController.php Voir le fichier

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…
Annuler
Enregistrer