Skip to content

Instantly share code, notes, and snippets.

@suanmiao
Created March 16, 2014 13:47
Show Gist options
  • Save suanmiao/9583503 to your computer and use it in GitHub Desktop.
Save suanmiao/9583503 to your computer and use it in GitHub Desktop.
wechat SMS verify

Login Special result: { "Ret": 302, "ErrMsg": "/cgi-bin/readtemplate?t=user/validate_phone_tmpl&lang=zh_CN&type=&protected=1&phone=%2B86130******71", "ShowVerifyCode": 0, "ErrCode": 0, "WtloginErrCode": 0 }

##1.Send sms

###Url:

https://mp.weixin.qq.com/cgi-bin/securesmsverify

###Param: act:sendsmscode token: lang:zh_CN random:0.3467499369289726

f:json ajax:1

###Referer:

https://mp.weixin.qq.com/cgi-bin/readtemplate?t=user/validate_phone_tmpl&lang=zh_CN&type=&protected=1&phone=%2B86130******7

###Response:

success:

{"base_resp":{"ret":0,"err_msg":""}}

2.Verify Sms

###Url:

https://mp.weixin.qq.com/cgi-bin/securesmsverify

###Params:

act:verifysmscode login_sms_code:322222 type: token: lang:zh_CN random:0.16518533951602876 f:json ajax:1

###Referer:

https://mp.weixin.qq.com/cgi-bin/readtemplate?t=user/validate_phone_tmpl&lang=zh_CN&type=&protected=1&phone=%2B86130******7

###Response:

####1.wrong code: {"base_resp":{"ret":11002,"err_msg":""}}

####2.success

###Get verifyPage

###Url:

https://mp.weixin.qq.com/cgi-bin/readtemplate

###Params:

t=user/validate_phone_tmpl &lang=zh_CN &type= &protected=1 &phone=%2B86130******71

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment