Browse Source

修复支付问题

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

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

31
                 'total_fee' => $order->price * 100,
31
                 'total_fee' => $order->price * 100,
32
                 'trade_type' => 'JSAPI',
32
                 'trade_type' => 'JSAPI',
33
                 'openid' => $wechat_id,
33
                 'openid' => $wechat_id,
34
+                'time_expire' => substr(Carbon::now()->addHour()->format('YmdHisu'), 14)
34
             ]);
35
             ]);
35
 
36
 
36
             if ($result['return_code'] == 'SUCCESS' && $result['result_code'] == 'SUCCESS') {
37
             if ($result['return_code'] == 'SUCCESS' && $result['result_code'] == 'SUCCESS') {

Loading…
Cancel
Save