瀏覽代碼

修复支付问题

chenxiqiang 6 年之前
父節點
當前提交
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…
取消
儲存