微信自动登录和页面授权功能
此功能和9508的weixin3.0文件夹下面的Reg.ashx一样,不过页面授权的地址需要修改成当前项目的PowerMobile2/index.html中的相关页面地址和模块。
步骤1:微信入口地址(/PowerMobile2/Reg.ashx)
步骤2:如果链接(/PowerMobile2/Reg.ashx) 没有hum参数,后端重定向到/PowerMobile2/index.html#/login
步骤3:在微信环境中登录成功之后 会访问链接(/PowerMobile2/Reg.ashx?hum=humanId)
后端接收hum参数,获取微信登录人账号
步骤4:...
步骤5:...
**(1)定向成功之后的后端重定向链接**:
/PowerMobile2/index.html#/redirect?type=author&authorStatus=1&token=mytoken
**(2)定向失败之后的后端重定向链接**:
/PowerMobile2/index.html#/redirect?type=author&authorStatus=0&msg=错误信息
**(3)链接(/PowerMobile2/Reg.ashx)没有hum参数的后端重定向链接**:
/PowerMobile2/index.html#/login