1.获取店铺页面路径
接口
POST https://open.jisuapp.cn/pc/User/GetAppRouter
参数说明
Content-Type: application/x-www-form-urlencoded
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
access_token | String | Y | 用户授权的唯一票据 |
router | String | Y | 小程序页面路由 |
type | Int | Y | 1 小程序 2 H5 |
params | Array | Y | 参数 |
返回参数
参数 | 类型 | 说明 |
---|---|---|
wx_app_id | String | 微信app_id |
gzh_id | Int | 公众号id |
gzh_name | String | 公众号名 |
qrcode_url | String | 公众号url |
pages | String | 公众号页面路由 |
web_url | String | 小程序页面url |
参数返回示例
type=1(小程序)
{
'status':0,
'data':
{
'app_gzh_info':
{
'wx_app_id':'xxx',//微信appid
'gzh_id':'xxx',//公众号id
'gzh_name':'xxx',//公众号名
'head_img':'xxx',//公众号图片
'qrcode_url':'xxx',//公众号二维码
'pages':'xxx', //公众号页面路由
}
'app_id':{
'xxx' //小程序app_id
}
}
}
type=2(H5)
{
'status':0,
'data':{
'web_url':{
web_user_domain/router?app_id=app_id&$params
},
'app_id':{
'xxx' // app_id
}
}
}