|
|
@@ -155,11 +155,11 @@ async function Main() {
|
|
|
gExpertsRecommendHeaders.token = gExpertsRecommendToken;
|
|
|
|
|
|
if (isPlanBuyTime()) {
|
|
|
- let comPlanResult = await checkLotteryPlanBuy();
|
|
|
+ let comPlanResult = await checkTimeSlotPlanBuy();
|
|
|
}
|
|
|
if (isExpertsRecommendEnabled()) {
|
|
|
// await magicJS.utils.sleep(100);
|
|
|
- let expertsResult = await checkExpertsRecommend();
|
|
|
+ let expertsResult = await checkExpertPlanBuy();
|
|
|
}
|
|
|
}
|
|
|
magicJS.notification.msg('');
|
|
|
@@ -384,7 +384,7 @@ async function getHtmlContent(url, headers) {
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
-async function checkLotteryPlanBuy() {
|
|
|
+async function checkTimeSlotPlanBuy() {
|
|
|
// let htmlUrl = `https://${gBuyPlanHost}/v1/html/buy_plan/buy_plan.html`;
|
|
|
// let htmlContent = await getHtmlContent(htmlUrl, gBuyPlanHeaders);
|
|
|
|
|
|
@@ -1005,7 +1005,7 @@ async function getPksPlanItem(lotCode) {
|
|
|
return result.result.data;
|
|
|
}
|
|
|
|
|
|
-async function checkExpertsRecommend() {
|
|
|
+async function checkExpertPlanBuy() {
|
|
|
let userName = magicJS.data.read('168_PksExpertUserName', null);
|
|
|
if (!userName || userName.length == 0) {
|
|
|
magicJS.logger.info(`请选择你信任的专家`);
|
|
|
@@ -1097,7 +1097,7 @@ function getExpertsFixCost(planDetail) {
|
|
|
}
|
|
|
}
|
|
|
if (continuousWrongCount > 0) {
|
|
|
- turnOneCost = turnOneCost * (1 + Math.pow(2, continuousWrongCount));
|
|
|
+ turnOneCost = turnOneCost * (1 + Math.pow(2, continuousWrongCount * 3 - 1));
|
|
|
}
|
|
|
let continuousRightCount = 0;
|
|
|
let rightCostTurn = 0;
|