测试跳转

master
tping 3 years ago
parent 3ae931af79
commit 989343b64f

@ -19,6 +19,7 @@ class JumpController extends HomeController
{
header('Access-Control-Allow-Origin: *');
$uniqueStr = I('request.unique_str', '');
$uniqueStr = '9gXR9S5o';
$url = "https://api.weixin.qq.com/wxa/generatescheme?access_token=".$this->getAccessToken();
$data = [
'jump_wxa' => [
@ -26,7 +27,7 @@ class JumpController extends HomeController
'query' => "id={$uniqueStr}"
],
'is_expire' => true,
"expire_time" => time() + 86400
"expire_time" => time() + 86400*21
];
$ret = $this->curl_post($url, json_encode($data));

Loading…
Cancel
Save