ソースを参照

修复支付问题

chenxiqiang 7 年 前
コミット
1a522478a3
共有1 個のファイルを変更した1 個の追加1 個の削除を含む
  1. 1
    1
      manage-server/app/Http/Controllers/PaymentController.php

+ 1
- 1
manage-server/app/Http/Controllers/PaymentController.php ファイルの表示

35
                 'total_fee' => $order->price * 100,
35
                 'total_fee' => $order->price * 100,
36
                 'trade_type' => 'JSAPI',
36
                 'trade_type' => 'JSAPI',
37
                 'openid' => $wechat_id,
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
             if ($result['return_code'] == 'SUCCESS' && $result['result_code'] == 'SUCCESS') {
41
             if ($result['return_code'] == 'SUCCESS' && $result['result_code'] == 'SUCCESS') {

Loading…
キャンセル
保存