简要描述:

  • PC端扫码登录接口

请求域名:

  • http://yunzshop.com

请求URL:

POST/app/index.php?i=2&c=entry&do=shop&m=yun_shop&route=member.login.index

参数:

参数名 是否必须 类型 说明
type string 登录类型:5-手机号
is_pc_qrcode int 1-PC扫码登录 0-否

返回示例:

正确时返回:(获取URL后前端拆分参数生成二维码即可)

{
    "result": 0,
    "msg": {
        "url": "https://open.weixin.qq.com/connect/qrconnect?appid=wx07c10adafa79a71e&redirect_uri=https%3A%2F%2Fdev3.yunzmall.com%2Faddons%2Fyun_shop%2Fapi.php%3Fi%3D15%26uuid%3D0%26mid%3D0%26type%3D5%26shop_id%3Dnull%26scope%3Dpass%26route%3Dmember.login.index%26is_pc_qrcode%3D1%26is_pc_qrcode%3D1&response_type=code&scope=snsapi_login&state=yz-985e1b8f5a63f43596b2f14c8398ed57#wechat_redirect",
        "msg": "【微信扫码登录】code不存在"
    },
    "data": {
        "status": 9
    }
}
 

错误时返回:

  

返回参数说明:

参数名 类型 说明
url string 二维码参数(需要前端分割参数后进行解码,详情见微信官方文档https://developers.weixin.qq.com/doc/oplatform/Website_App/WeChat_Login/Wechat_Login.html)

备注:

  • 更多返回错误代码请看首页的错误代码描述