Browse Source

修复支付问题

chenxiqiang 6 years ago
parent
commit
1a522478a3
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      manage-server/app/Http/Controllers/PaymentController.php

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

@@ -35,7 +35,7 @@ class PaymentController extends Controller
35 35
                 'total_fee' => $order->price * 100,
36 36
                 'trade_type' => 'JSAPI',
37 37
                 'openid' => $wechat_id,
38
-                'time_expire' => substr(Carbon::now()->addHour()->format('YmdHisu'), 14)
38
+                'time_expire' => substr(Carbon::now()->addHour()->format('YmdHisu'), 0,15)
39 39
             ]);
40 40
 
41 41
             if ($result['return_code'] == 'SUCCESS' && $result['result_code'] == 'SUCCESS') {

Loading…
Cancel
Save