MCPcopy Create free account
hub / github.com/smallfawn/QLScriptPublic / info

Method info

daily/chery.js:101–130  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

99
100 }
101 async info() {
102 let options = {
103 method: 'GET',
104 url: `https://mobile-consumer-sapp.chery.cn/web/user/current/details?encryptParam=${encodeURIComponent(this.encryptParams(`access_token=${this.token}&terminal=3`))}`,
105 headers: {
106 "user-agent": "Dart/2.19 (dart:io)",
107 "appversioncode": "26030901",
108 "accept": "application/json, text/plain, */*",
109 "appversion": "3.6.9",
110 "accept-language": "zh-CN,zh;q=0.9",
111 "accept-encoding": "gzip, deflate",
112 "host": "mobile-consumer-sapp.chery.cn",
113 "content-type": "application/json; charset=UTF-8",
114 "agent": "android",
115 "encryptflag": "true",
116 "request-channel": "app"
117 },
118 }
119 let { data: result } = await axios.request(options);
120 if (result.status == 200) {
121 $.log(`✅账号[${this.index}] 【昵称】[${result.data.displayName}] 【积分】[${result.data.pointAccount.payableBalance}]🎉`);
122 this.userName = result.data.displayName
123 this.userPoint = result.data.pointAccount.payableBalance
124 this.ckStatus = true;
125 } else {
126 $.log(`❌账号[${this.index}] [${result.message}]`);
127 this.ckStatus = false;
128 //console.log(result);
129 }
130 }
131
132 async taskShare(articleId) {
133

Callers 1

runMethod · 0.95

Calls 3

encryptParamsMethod · 0.95
requestMethod · 0.45
logMethod · 0.45

Tested by

no test coverage detected