소스 검색

修复支付问题

chenxiqiang 7 년 전
부모
커밋
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…
취소
저장