|
@@ -226,14 +226,18 @@ async function doDragonBet(drawIssue, ranking, planStr, betAmount) {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
async function doTryCheckin() {
|
|
async function doTryCheckin() {
|
|
|
- let result = await loadSigninPromoDetail();
|
|
|
|
|
- if (!result) {
|
|
|
|
|
- return;
|
|
|
|
|
|
|
+ let promoRet = await loadSigninPromoDetail();
|
|
|
|
|
+ if (!promoRet) {
|
|
|
|
|
+ let loginRet = await tryReLogin();
|
|
|
|
|
+ if (!loginRet) {
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+ promoRet = await loadSigninPromoDetail();
|
|
|
}
|
|
}
|
|
|
- if (result.statusCode != 200) {
|
|
|
|
|
|
|
+ if (!promoRet || promoRet.statusCode != 200) {
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
- let detail = result.result;
|
|
|
|
|
|
|
+ let detail = promoRet.result;
|
|
|
let loginDayCount = detail.loginDayCount;
|
|
let loginDayCount = detail.loginDayCount;
|
|
|
let currentDayCount = detail.currentDayCount;
|
|
let currentDayCount = detail.currentDayCount;
|
|
|
if (detail.depositCompleted) {
|
|
if (detail.depositCompleted) {
|