瀏覽代碼

修复支付问题

chenxiqiang 7 年之前
父節點
當前提交
3272b7076c
共有 1 個檔案被更改,包括 1 行新增0 行删除
  1. 1
    0
      manage-server/app/Http/Controllers/PaymentController.php

+ 1
- 0
manage-server/app/Http/Controllers/PaymentController.php 查看文件

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…
取消
儲存