|
@@ -27,7 +27,6 @@ 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'), 0,15));
|
31
|
30
|
|
32
|
31
|
$result = $app->order->unify([
|
33
|
32
|
'body' => '玥子轩家政',
|
|
@@ -35,7 +34,7 @@ class PaymentController extends Controller
|
35
|
34
|
'total_fee' => $order->price * 100,
|
36
|
35
|
'trade_type' => 'JSAPI',
|
37
|
36
|
'openid' => $wechat_id,
|
38
|
|
- 'time_expire' => substr(Carbon::now()->addHour()->format('YmdHisu'), 0,15)
|
|
37
|
+ 'time_expire' => Carbon::now()->addHour()->format('YmdHis')
|
39
|
38
|
]);
|
40
|
39
|
|
41
|
40
|
if ($result['return_code'] == 'SUCCESS' && $result['result_code'] == 'SUCCESS') {
|