This commit is contained in:
lxk0301
2021-01-17 14:29:30 +08:00
parent ff3486e2dd
commit 7d9928b8d7
6 changed files with 8 additions and 8 deletions

View File

@ -124,7 +124,7 @@ async function getToken() {
$.setdata(`${count}`, 'countFlag');
$.msg($.name, '更新Token: 成功🎉', ``);
console.log(`开始上传Token`)
await $.http.get({url: `http://api.turinglabs.net/api/v1/jd/joy/create/${LKYLToken}/`}).then((resp) => {
await $.http.get({url: `http://jd.turinglabs.net/api/v2/jd/joy/create/${LKYLToken}/`}).then((resp) => {
if (resp.statusCode === 200) {
let { body } = resp;
console.log(`Token提交结果:${body}`)
@ -160,7 +160,7 @@ async function getToken() {
}
function readToken() {
return new Promise(resolve => {
$.get({url: `http://api.turinglabs.net/api/v1/jd/joy/read/1/`, 'timeout': 10000}, (err, resp, data) => {
$.get({url: `http://jd.turinglabs.net/api/v2/jd/joy/read/1/`, 'timeout': 10000}, (err, resp, data) => {
try {
if (err) {
console.log(`${JSON.stringify(err)}`)