Commit 5f237ac1 authored by jianghaiming's avatar jianghaiming

Merge branch 'pindan_activity_list_optimize' into develop

parents 2ccdca60 470993d5
...@@ -427,16 +427,14 @@ class UserService ...@@ -427,16 +427,14 @@ class UserService
return $update; return $update;
} }
public static function generateUrllink() public static function generateUrllink($params)
{ {
//请求接口,获取用户openid //请求接口,获取用户openid
$generateUrl = 'https://api.weixin.qq.com/wxa/generate_urllink?access_token='.self::getAccessToken(); $generateUrl = 'https://api.weixin.qq.com/wxa/generate_urllink?access_token='.self::getAccessToken();
$params = [ $marketingId = !empty($params['marketing_id']) ? $params['marketing_id'] : '';
'access_token' => self::getAccessToken(),
];
$params = [ $params = [
"path" => "/pages/product-info/index", "path" => "/pages/product-info/index",
"query" => "marketing_id=10000107&from=square", "query" => "marketing_id={$marketingId}&from=square",
"is_expire" => true, "is_expire" => true,
"expire_type" => 1, "expire_type" => 1,
"expire_interval" => 10, "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