()
| 225 | } |
| 226 | } |
| 227 | async user_info() { |
| 228 | let time = Date.now() |
| 229 | try { |
| 230 | let options = { |
| 231 | url: `https://mxsa.mxbc.net/api/v1/customer/info?appId=d82be6bbc1da11eb9dd000163e122ecb&t=${time}&sign=${this.getSHA256withRSA('appId=d82be6bbc1da11eb9dd000163e122ecb&t=' + time)}`, |
| 232 | headers: { |
| 233 | 'Host': 'mxsa.mxbc.net', |
| 234 | 'Connection': 'keep-alive', |
| 235 | 'user-agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36 MicroMessenger/7.0.4.501 NetType/WIFI MiniProgramEnv/Windows WindowsWechat/WMPF', |
| 236 | 'xweb_xhr': 1, |
| 237 | 'Access-Token': this.ck, |
| 238 | 'Content-Type': 'application/json', |
| 239 | 'Accept': '*/*', |
| 240 | 'Sec-Fetch-Site': 'cross-site', |
| 241 | 'Sec-Fetch-Mode': 'cors', |
| 242 | 'Sec-Fetch-Dest': 'empty', |
| 243 | 'Referer': 'https://servicewechat.com/wx7696c66d2245d107/59/page-frame.html', |
| 244 | 'Accept-Language': 'en-us,en', |
| 245 | 'Accept-Encoding': 'gzip, deflate', |
| 246 | |
| 247 | } |
| 248 | } |
| 249 | let { data: result } = await axios.request(options); |
| 250 | if (result.code == 0) { |
| 251 | this.mobilePhone = result.data.mobilePhone; |
| 252 | $.log(`账号[${this.index}] 用户CK有效: [${result.data.mobilePhone}] 雪王币剩余[${result.data.customerPoint}]`); |
| 253 | this.ckStatus = true |
| 254 | |
| 255 | } else { |
| 256 | $.log(`账号[${this.index}] 用户CK失效:,原因未知!`); |
| 257 | this.ckStatus = false |
| 258 | |
| 259 | console.log(result); |
| 260 | } |
| 261 | } catch (e) { |
| 262 | $.log(`账号[${this.index}] 用户信息校验异常❌ ${e.response?.data?.msg || e.message || e}`); |
| 263 | this.ckStatus = false |
| 264 | } |
| 265 | } |
| 266 | async getLoginUrl() { |
| 267 | try { |
| 268 | let timestamp = Date.now(); |
no test coverage detected