文档
测试

获取授权

GET
http://vip2.wan911.com/api/action/?_handle=SystemPage&_method=WechatAuth&url=https%3A%2F%2Fwww.baidu.comhttps%3A%2F%2Fwww.baidu.com

请求参数

参数名
类型
描述
必填
_handle
string
示例:SystemPage
必填
_method
string
示例:WechatAuth
必填
url
string
示例:https://www.baidu.comhttps://www.baidu.com
必填

响应参数

参数名
类型
描述
必填
code
int
示例:0
必填
msg
string
示例:接口处理方法{0}不存在
必填
data
object
示例:null
必填

说明 / 示例

# 接口文档-获取公众号授权 ## 说明 ``` vip手机版的任意页面如果判断为是微信浏览器了.同时浏览器地址上没有wxcode这个参数的话 就请求一下接口,接口返回个url地址跳转,然后还会跳回来 在浏览器参数中带着wxcode这个参数 将这个参数存下来,支付星耀会员的时候要用 相关文档也修改了http://39.104.66.127:8080/zentao/doc-view-76.html 其实主要用到的页面就是/page/vip.html 根据这个需求前端来做下处理吧 ``` ### 请求参数 | 参数 | 说明 | 类型 | 备注 | 是否必填 | | ------- | -------- | ------ | ------------------- | -------- | | _handle | 处理类 | string | 固定值: SystemPage | 是 | | _method | 处理方法 | string | 固定值: WechatAuth | 是 | | url | 微信回调跳转地址 | string | | 是 | #### 请求地址 ``` 会员站域名/api/action/ ``` ##### 返回值 如果code=1就跳转data里的地址 ```json {"code":1, "msg":"", "data":"https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx6919929cb4481113&redirect_uri=http%3a%2f%2fpay.0wanwan.com%2fapi%2fpay%2fJSAPI.aspx&response_type=code&scope=snsapi_base&state=http%3a%2f%2fvip.0wanwan.com"} ```