名称:获取微信授权地址

接口:/index/weixin/authurl

请求方式:post

参数名 类型 必填 说明 示例
url string Y 当前页面地址 http://www.huibaifen.com/weixin/#/

返回示例

{
    "code": 200,
    "result": {
        "url": "https://open.weixin.qq.com/connect/oauth2/authorize?appid=wx4223013d5f9710f5&redirect_uri=http%3A%2F%2Fportal.huibaifen.com%2Findex.php%2Findex%2FWeixin%2Furl_get_openid&response_type=code&scope=snsapi_base&state=d7caa30672452a80174b43eff96e79ea#wechat_redirect"
    },
    "msg": "success"
}
{
    "code": 204,//
    "result": [],
    "msg": "已授权"
}
{
    "code": 40001,
    "result": [],
    "msg": "url不正确"
}

results matching ""

    No results matching ""