Commit 470993d5 authored by jianghaiming's avatar jianghaiming

update:修改插入活动id生成链接

parent 7e5019b9
......@@ -279,16 +279,14 @@ class UserService
return $update;
}
public static function generateUrllink()
public static function generateUrllink($params)
{
//请求接口,获取用户openid
$generateUrl = 'https://api.weixin.qq.com/wxa/generate_urllink?access_token='.self::getAccessToken();
$params = [
'access_token' => self::getAccessToken(),
];
$marketingId = !empty($params['marketing_id']) ? $params['marketing_id'] : '';
$params = [
"path" => "/pages/product-info/index",
"query" => "marketing_id=10000107&from=square",
"query" => "marketing_id={$marketingId}&from=square",
"is_expire" => true,
"expire_type" => 1,
"expire_interval" => 10,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment