浏览代码

修复支付问题

chenxiqiang 6 年前
父节点
当前提交
ec89d39e35
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2
    1
      manage-server/app/Http/Controllers/PaymentController.php

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

27
         if ($wechat_id && $order) {
27
         if ($wechat_id && $order) {
28
             $out_trade_no = $order_type . "_" . $order_id;
28
             $out_trade_no = $order_type . "_" . $order_id;
29
             $app = app('wechat.payment');
29
             $app = app('wechat.payment');
30
+            dd(substr(Carbon::now()->addHour()->format('YmdHisu'), 14));
31
+
30
             $result = $app->order->unify([
32
             $result = $app->order->unify([
31
                 'body' => '玥子轩家政',
33
                 'body' => '玥子轩家政',
32
                 'out_trade_no' => $out_trade_no,
34
                 'out_trade_no' => $out_trade_no,
35
                 'openid' => $wechat_id,
37
                 'openid' => $wechat_id,
36
                 'time_expire' => substr(Carbon::now()->addHour()->format('YmdHisu'), 14)
38
                 'time_expire' => substr(Carbon::now()->addHour()->format('YmdHisu'), 14)
37
             ]);
39
             ]);
38
-            dd($result);
39
 
40
 
40
             if ($result['return_code'] == 'SUCCESS' && $result['result_code'] == 'SUCCESS') {
41
             if ($result['return_code'] == 'SUCCESS' && $result['result_code'] == 'SUCCESS') {
41
                 //第二次签名
42
                 //第二次签名

Loading…
取消
保存