MCPcopy Index your code
hub / github.com/smallfawn/QLScriptPublic / checkVcode

Method checkVcode

backup/sysxc.js:134–196  ·  view source on GitHub ↗
(pointJson, VcodeToken, VcodeKey, aesStrStar)

Source from the content-addressed store, hash-verified

132 }
133 }
134 async checkVcode(pointJson, VcodeToken, VcodeKey, aesStrStar) {
135 try {
136 let options = {
137 url: 'https://scrm-prod.shuyi.org.cn/saas-gateway/api/agg-trade/v1/signIn/checkVCode',
138 headers: {
139 Host: 'scrm-prod.shuyi.org.cn',
140 Connection: 'keep-alive',
141 charset: 'utf-8',
142 auth: this.ck,
143 sessionkey: '',
144 channel: 'wechat_micro',
145 'User-Agent': 'Mozilla/5.0 (Linux; Android 10; MI 8 Lite Build/QKQ1.190910.002; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/107.0.5304.141 Mobile Safari/537.36 XWEB/5023 MMWEBSDK/20221206 MMWEBID/2585 MicroMessenger/8.0.32.2300(0x2800205D) WeChat/arm64 Weixin NetType/WIFI Language/zh_CN ABI/arm64 MiniProgramEnv/android',
146 'terminal-code': 'member_wechat_micro',
147 releaseversion: '2026331',
148 hostname: 'scrm-prod.shuyi.org.cn',
149 'httpt-taceid': '',
150 'Content-Type': 'application/json',
151 channelid: '',
152 Referer: 'https://servicewechat.com/wxa778c3d895442625/287/page-frame.html'
153 },
154 body: JSON.stringify({
155 "captchaType": "blockPuzzle",
156 "pointJson": pointJson,
157 "token": VcodeToken
158 })
159 };
160 //console.log(options);
161 let result = await httpRequest(options);
162 //console.log(result);
163 if (result.resultCode == '0000') {
164 //console.log(result);
165 DoubleLog(`账号[${this.index}]验证成功`);
166
167 let SignInParams = VcodeToken + '---' + aesStrStar
168 SignInParams = SignInParams.replace(/\ +/g, "");
169 //console.log(SignInParams);
170
171 let abc = ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z']
172 for (let a in abc) {
173 let SignInpointJson = aesEncrypt(VcodeKey, SignInParams)
174 SignInpointJson = SignInpointJson.substring(0, 85)
175 SignInpointJson += abc[a]
176 //console.log(SignInpointJson);
177 SignInpointJson += '=='
178 //console.log(SignInpointJson);
179 let res = await this.SignIn(SignInpointJson)
180 if (res == '0') {
181 //console.log(`签到成功`);
182 return '0'
183 }
184 }
185 DoubleLog(`账号[${this.index}]签到结束`);
186 //console.log(aesDecrypt(key, aesEncrypt(VcodeKey, SignInParams)));
187 return '0'
188 } else {
189 //console.log(result);
190 DoubleLog(`账号[${this.index}]验证失败`);
191 return '1'

Callers 1

getVcodeMethod · 0.95

Calls 5

SignInMethod · 0.95
httpRequestFunction · 0.70
DoubleLogFunction · 0.70
aesEncryptFunction · 0.70
logMethod · 0.45

Tested by

no test coverage detected