|
|
|
|
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') {
|