debug
This commit is contained in:
@@ -109,12 +109,14 @@ function getToken() {
|
|||||||
const body = JSON.parse($response.body);
|
const body = JSON.parse($response.body);
|
||||||
const LKYLToken = body.data && body.data.token;
|
const LKYLToken = body.data && body.data.token;
|
||||||
if (LKYLToken) {
|
if (LKYLToken) {
|
||||||
count ++;
|
|
||||||
countFlag ++;
|
|
||||||
$.log(`${$.name} token\n${LKYLToken}\n`);
|
$.log(`${$.name} token\n${LKYLToken}\n`);
|
||||||
|
count = $.getdata('countFlag') ? $.getdata('countFlag') * 1 : 0;
|
||||||
|
count ++;
|
||||||
console.log(`count: ${count}`)
|
console.log(`count: ${count}`)
|
||||||
if (count === 1) {
|
$.setdata(`${count}`, 'countFlag');
|
||||||
|
if ($.getdata('countFlag') * 1 === 3) {
|
||||||
count = 0;
|
count = 0;
|
||||||
|
$.setdata(`${count}`, 'countFlag');
|
||||||
$.msg($.name, '更新Token: 成功🎉', ``);
|
$.msg($.name, '更新Token: 成功🎉', ``);
|
||||||
}
|
}
|
||||||
$.setdata(LKYLToken, 'jdJoyRunToken');
|
$.setdata(LKYLToken, 'jdJoyRunToken');
|
||||||
|
Reference in New Issue
Block a user