|
|
@@ -27,11 +27,12 @@ async function Main() {
|
|
|
let username = magicJS.data.read(cloud189UserNameKey, "18022485650", session);
|
|
|
let password = magicJS.data.read(cloud189PassWordKey, "Sjojo510520@", session);
|
|
|
magicJS.logger.info(`用户:${username}`);
|
|
|
- let loginExtData = await login(username,password);
|
|
|
+ // let loginExtData = await login(username,password);
|
|
|
+ let loginExtData = await wapLogin(username,password);
|
|
|
if(!loginExtData){
|
|
|
// 尝试使用缓存数据来签到
|
|
|
- loginExtData = magicJS.data.read(cloud189LoginDataKey, null, session);
|
|
|
- magicJS.logger.info(`尝试使用缓存数据来签到`);
|
|
|
+ // loginExtData = magicJS.data.read(cloud189LoginDataKey, null, session);
|
|
|
+ // magicJS.logger.info(`尝试使用缓存数据来签到`);
|
|
|
}else{
|
|
|
magicJS.data.write(cloud189LoginDataKey, JSON.stringify(loginExtData), session);
|
|
|
magicJS.logger.info(`登录成功更新数据`);
|
|
|
@@ -57,9 +58,9 @@ async function Main() {
|
|
|
let drawRet = await lotteryDraw(drawUrlList[i], loginExtData.lt);
|
|
|
if(drawRet){
|
|
|
if(drawRet.errorCode){
|
|
|
- msg = `抽奖失败:${drawRet.errorCode}`;
|
|
|
+ msg = `抽奖[${i}]失败:${drawRet.errorCode}`;
|
|
|
}else{
|
|
|
- msg = `抽奖获得:${drawRet.description}`;
|
|
|
+ msg = `抽奖[${i}]获得:${drawRet.description}`;
|
|
|
}
|
|
|
magicJS.logger.info(msg);
|
|
|
magicJS.notification.appendNotifyInfo(msg);
|