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

Method refresh_token

jlyh.js:198–218  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

196
197 // 刷新Key函数
198 async refresh_token() {
199 try {
200 let options = {
201 url: `https://galaxy-user-api.geely.com/api/v1/login/refresh?refreshToken=${this.refreshToken}`,
202 headers: this.getGetHeader(204179735, `/api/v1/login/refresh?refreshToken=${this.refreshToken}`),
203 },
204 result = await httpRequest(options);
205 if (result.code == 'success') {
206 console.log(`✅${result.message}: ${result.data.centerTokenDto.token} \n🆗刷新KEY:${result.data.centerTokenDto.refreshToken}`);
207 this.ckStatus = true;
208 this.token = result.data.centerTokenDto.token
209 } else {
210 $.DoubleLog(`❌ ${result.message}`);
211 this.ckStatus = false;
212 console.log(result);
213 Notify = 1;
214 }
215 } catch (e) {
216 console.log(e)
217 }
218 }
219
220 //签到状态查询函数
221 async signstate() {

Callers 1

jlyh.jsFile · 0.45

Calls 4

getGetHeaderMethod · 0.95
httpRequestFunction · 0.70
logMethod · 0.45
DoubleLogMethod · 0.45

Tested by

no test coverage detected