|
|
@@ -210,7 +210,7 @@ async function tryExecuteAfkTask() {
|
|
|
let password = 'Sjojo510520';
|
|
|
if (needReLogin) {
|
|
|
let retLogin = await doLogin(username, password);
|
|
|
- if (retLogin || retLogin.code != 0) {
|
|
|
+ if (!retLogin || retLogin.code != 0) {
|
|
|
magicJS.logger.info(`登录失败!`);
|
|
|
magicJS.notification.appendNotifyInfo(`登录失败!`);
|
|
|
return;
|
|
|
@@ -220,7 +220,7 @@ async function tryExecuteAfkTask() {
|
|
|
if (retConfig && retConfig.code == 4001) {//没有登录
|
|
|
magicJS.logger.info(`没有登录,尝试重新登录`);
|
|
|
let retLogin = await doLogin(username, password);
|
|
|
- if (retLogin || retLogin.code != 0) {
|
|
|
+ if (!retLogin || retLogin.code != 0) {
|
|
|
magicJS.logger.info(`登录失败!`);
|
|
|
magicJS.notification.appendNotifyInfo(`登录失败!`);
|
|
|
return;
|