|
|
|
@ -111,12 +111,12 @@ let 注册账号 = { |
|
|
|
|
method: 'POST', |
|
|
|
|
timeout: 3000 |
|
|
|
|
}); |
|
|
|
|
log(login); |
|
|
|
|
headers.token = JSON.parse(login).data.token; |
|
|
|
|
headers.Referer = home+"/console/apinfo"; |
|
|
|
|
headers.Cookie = getCookie(home+"/adminapi/login/account"); |
|
|
|
|
log(fetch('https://api.json.icu/console/user/console',{headers:headers})); |
|
|
|
|
|
|
|
|
|
log(headers);
|
|
|
|
|
let html = request(home+"/adminapi/user/getkey", {headers: headers}); |
|
|
|
|
log(html); |
|
|
|
|
let key = JSON.parse(html); |
|
|
|
|
log(key); |
|
|
|
|
if(key.key){ |
|
|
|
|