Explorar el Código

修复支付问题

chenxiqiang hace 6 años
padre
commit
c50fb4efe8
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1
    1
      manage-server/app/Http/Controllers/PaymentController.php

+ 1
- 1
manage-server/app/Http/Controllers/PaymentController.php Ver fichero

@@ -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…
Cancelar
Guardar