Skip to content

Commit

Permalink
add 1203 check: 为了你的帐号安全,此微信号不能登录网页微信。你可以使用Windows微信或Mac微信在电脑端登录。Wind…
Browse files Browse the repository at this point in the history
…ows微信下载地址:https://pc.weixin.qq.com  Mac微信下载地址:https://mac.weixin.qq.com
  • Loading branch information
qiming authored and qiming committed Jul 27, 2020
1 parent 8c0bc48 commit d2663d6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions lib/login.js
Expand Up @@ -58,6 +58,10 @@ async function getLoginInfo (text) {

logger.debug('login info :', self.loginInfo)
return true
} else if (pm && (pm[1] === '1203')) {
logger.warn('login forbidden:', resp)
console.log('login forbidden:', resp.match(/<message>(.*)<\/message>/)[1])
return false
} else {
return false
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "chatwe",
"version": "1.0.6",
"version": "1.0.7",
"description": "this is a wechat client sdk. using the protocol of web wechat.",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit d2663d6

Please sign in to comment.