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