|
@@ -231,14 +231,38 @@ function getPlanLotteryMaxBetAmount() {
|
|
|
return Number(amount);
|
|
return Number(amount);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
-function getPlanLotteryDrongonMaxAmount() {
|
|
|
|
|
- let amount = magicJS.data.read('168_PksPlanLotteryDrongonMaxAmount', null);
|
|
|
|
|
|
|
+function getPlanLotteryDrongonMaxTurn() {
|
|
|
|
|
+ let amount = magicJS.data.read('168_PksPlanLotteryDrongonMaxTurn', null);
|
|
|
if (amount == null) {
|
|
if (amount == null) {
|
|
|
- return 12;
|
|
|
|
|
|
|
+ return 11;
|
|
|
}
|
|
}
|
|
|
return Number(amount);
|
|
return Number(amount);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+function getPlanLotteryCostrReduceA(){
|
|
|
|
|
+ let multiple = magicJS.data.read('168_PksPlanLotteryCostrReduceA', null);
|
|
|
|
|
+ if (multiple == null) {
|
|
|
|
|
+ return 16;
|
|
|
|
|
+ }
|
|
|
|
|
+ return Number(multiple);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+function getPlanLotteryCostrReduceB(){
|
|
|
|
|
+ let multiple = magicJS.data.read('168_PksPlanLotteryCostrReduceB', null);
|
|
|
|
|
+ if (multiple == null) {
|
|
|
|
|
+ return 8;
|
|
|
|
|
+ }
|
|
|
|
|
+ return Number(multiple);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
|
|
+function getPlanLotteryCostrReduceC(){
|
|
|
|
|
+ let multiple = magicJS.data.read('168_PksPlanLotteryCostrReduceC', null);
|
|
|
|
|
+ if (multiple == null) {
|
|
|
|
|
+ return 4;
|
|
|
|
|
+ }
|
|
|
|
|
+ return Number(multiple);
|
|
|
|
|
+}
|
|
|
|
|
+
|
|
|
async function getHtmlContent(url, headers) {
|
|
async function getHtmlContent(url, headers) {
|
|
|
let options = {
|
|
let options = {
|
|
|
url: `${url}`,
|
|
url: `${url}`,
|
|
@@ -370,7 +394,7 @@ async function checkEvilDragonCSlayingNotify(failItem, pksPlanListData) {
|
|
|
}
|
|
}
|
|
|
if (failItem.index == unHitCount) {
|
|
if (failItem.index == unHitCount) {
|
|
|
let turnCount = 10 + unHitCount;
|
|
let turnCount = 10 + unHitCount;
|
|
|
- let maxTurnCount = getPlanLotteryDrongonMaxAmount();
|
|
|
|
|
|
|
+ let maxTurnCount = getPlanLotteryDrongonMaxTurn();
|
|
|
let tipsMsg = `[C]推荐号码:${latestItem.planC} VS 长龙号码:${failItem.planC} 期数:${turnCount}`;
|
|
let tipsMsg = `[C]推荐号码:${latestItem.planC} VS 长龙号码:${failItem.planC} 期数:${turnCount}`;
|
|
|
tipsMsg += `\n期号:${latestItem.preDrawIssue} 开奖时间:${latestItem.preDrawTime} 剩余时间:${latestItem.countTime}s`;
|
|
tipsMsg += `\n期号:${latestItem.preDrawIssue} 开奖时间:${latestItem.preDrawTime} 剩余时间:${latestItem.countTime}s`;
|
|
|
magicJS.logger.info(tipsMsg);
|
|
magicJS.logger.info(tipsMsg);
|
|
@@ -398,7 +422,7 @@ async function checkEvilDragonBSlayingNotify(failItem, pksPlanListData) {
|
|
|
}
|
|
}
|
|
|
if (failItem.index == unHitCount) {
|
|
if (failItem.index == unHitCount) {
|
|
|
let turnCount = 10 + unHitCount;
|
|
let turnCount = 10 + unHitCount;
|
|
|
- let maxTurnCount = getPlanLotteryDrongonMaxAmount();
|
|
|
|
|
|
|
+ let maxTurnCount = getPlanLotteryDrongonMaxTurn();
|
|
|
let tipsMsg = `[B]推荐号码:${latestItem.planB} VS 长龙号码:${failItem.planB} 期数:${turnCount}`;
|
|
let tipsMsg = `[B]推荐号码:${latestItem.planB} VS 长龙号码:${failItem.planB} 期数:${turnCount}`;
|
|
|
tipsMsg += `\n期号:${latestItem.preDrawIssue} 开奖时间:${latestItem.preDrawTime} 剩余时间:${latestItem.countTime}s`;
|
|
tipsMsg += `\n期号:${latestItem.preDrawIssue} 开奖时间:${latestItem.preDrawTime} 剩余时间:${latestItem.countTime}s`;
|
|
|
magicJS.logger.info(tipsMsg);
|
|
magicJS.logger.info(tipsMsg);
|
|
@@ -426,7 +450,7 @@ async function checkEvilDragonASlayingNotify(failItem, pksPlanListData) {
|
|
|
}
|
|
}
|
|
|
if (failItem.index == unHitCount) {
|
|
if (failItem.index == unHitCount) {
|
|
|
let turnCount = 10 + unHitCount;
|
|
let turnCount = 10 + unHitCount;
|
|
|
- let maxTurnCount = getPlanLotteryDrongonMaxAmount();
|
|
|
|
|
|
|
+ let maxTurnCount = getPlanLotteryDrongonMaxTurn();
|
|
|
let tipsMsg = `[A]推荐号码:${latestItem.planA} VS 长龙号码:${failItem.planA} 期数:${turnCount}`;
|
|
let tipsMsg = `[A]推荐号码:${latestItem.planA} VS 长龙号码:${failItem.planA} 期数:${turnCount}`;
|
|
|
tipsMsg += `\n期号:${latestItem.preDrawIssue} 开奖时间:${latestItem.preDrawTime} 剩余时间:${latestItem.countTime}s`;
|
|
tipsMsg += `\n期号:${latestItem.preDrawIssue} 开奖时间:${latestItem.preDrawTime} 剩余时间:${latestItem.countTime}s`;
|
|
|
magicJS.logger.info(tipsMsg);
|
|
magicJS.logger.info(tipsMsg);
|
|
@@ -733,11 +757,11 @@ async function tryDragonBet(drawIssue, planStr, betAmount, maxBetAmount = 96) {
|
|
|
let numArr = planStr.split(',');
|
|
let numArr = planStr.split(',');
|
|
|
let numCount = numArr.length;
|
|
let numCount = numArr.length;
|
|
|
if (numCount >= 5) {
|
|
if (numCount >= 5) {
|
|
|
- betAmount = Math.floor(betAmount / 8);
|
|
|
|
|
|
|
+ betAmount = Math.floor(betAmount / getPlanLotteryCostrReduceA());
|
|
|
} else if (numCount >= 4) {
|
|
} else if (numCount >= 4) {
|
|
|
- betAmount = Math.floor(betAmount / 8);
|
|
|
|
|
|
|
+ betAmount = Math.floor(betAmount / getPlanLotteryCostrReduceB());
|
|
|
} else {
|
|
} else {
|
|
|
- betAmount = Math.floor(betAmount / 4);
|
|
|
|
|
|
|
+ betAmount = Math.floor(betAmount / getPlanLotteryCostrReduceC());
|
|
|
}
|
|
}
|
|
|
if (betAmount < 1) {
|
|
if (betAmount < 1) {
|
|
|
betAmount = 1;
|
|
betAmount = 1;
|