shawenguan 1 yıl önce
ebeveyn
işleme
58738d0887
2 değiştirilmiş dosya ile 49 ekleme ve 18 silme
  1. 37 14
      BoxJsSub/168.json
  2. 12 4
      Scripts/168/pksPlanHelper.js

+ 37 - 14
BoxJsSub/168.json

@@ -61,13 +61,6 @@
                     "desc": "默认关闭"
                 },
                 {
-                    "id": "168_PksPlanLotteryKillDrongon",
-                    "name": "屠龙勇士开启/关闭",
-                    "val": false,
-                    "type": "boolean",
-                    "desc": "默认关闭"
-                },
-                {
                     "id": "168_PksPlanDrawTurnCountC",
                     "name": "计划C第几轮提醒",
                     "val": 0,
@@ -113,13 +106,6 @@
                     "desc": "自动下注预估中奖率最低值"
                 },
                 {
-                    "id": "168_PksPlanLotteryDrongonMaxTurn",
-                    "name": "屠龙n期数(10期以上)",
-                    "val": 11,
-                    "type": "number",
-                    "desc": "屠龙n期数"
-                },
-                {
                     "id": "168_PksPlanLotteryCostrReduceC",
                     "name": "计划C下注反向倍数",
                     "val": 8,
@@ -144,6 +130,20 @@
                     "desc": "计划C下注反向倍数"
                 },
                 {
+                    "id": "168_PksPlanLotteryKillDrongon",
+                    "name": "屠龙勇士开启/关闭",
+                    "val": false,
+                    "type": "boolean",
+                    "desc": "默认关闭"
+                },
+                {
+                    "id": "168_PksPlanLotteryDrongonMaxTurn",
+                    "name": "屠龙n期数(10期以上)",
+                    "val": 11,
+                    "type": "number",
+                    "desc": "屠龙n期数"
+                },
+                {
                     "id": "168_PksPlanLotteryMaxBetAmount",
                     "name": "屠龙下注最大限额",
                     "val": 96,
@@ -151,6 +151,29 @@
                     "desc": "屠龙下注最大限额"
                 },
                 {
+                    "id": "168_PksExpertsRecommendEnabled",
+                    "name": "专家推荐开启/关闭",
+                    "val": false,
+                    "type": "boolean",
+                    "desc": "默认关闭"
+                },
+                {
+                    "id": "168_PksExpertUserName",
+                    "name": "专家名字",
+                    "val": "",
+                    "type": "text",
+                    "placeholder": "",
+                    "desc": "专家名字"
+                },
+                {
+                    "id": "168_PksExpertRecommendRanking",
+                    "name": "彩票名次位置",
+                    "val": 1,
+                    "type": "number",
+                    "placeholder": "",
+                    "desc": "彩票名次位置"
+                },
+                {
                     "id": "168_PksPlanDrawIssueCustom",
                     "name": "自定义计划期数-测试",
                     "val": "",

+ 12 - 4
Scripts/168/pksPlanHelper.js

@@ -387,7 +387,7 @@ async function checkLotteryPlanBuy() {
 		return;
 	}
 	let tmpDrawIssue = magicJS.data.read('168_PksPlanPreDrawIssue', '');
-	// 期
+	// 期
 	let preDrawIssue = String(pksPlanItemData.preDrawIssue);
 	if (tmpDrawIssue == preDrawIssue) {
 		return;
@@ -945,7 +945,7 @@ async function getPksPlanItem(lotCode) {
 async function checkExpertsRecommend() {
 	let userName = magicJS.data.read('168_PksExpertUserName', null);
 	if (!userName || userName.length == 0) {
-		magicJS.logger.info(`请设置你喜欢的专家名字`);
+		magicJS.logger.info(`请选择你信任的专家`);
 		return;
 	}
 	userName = userName.trim();
@@ -994,15 +994,23 @@ async function checkExpertsRecommend() {
 		return;
 	}
 	let latestItem = planDetail.head;
+	let tmpDrawIssue = magicJS.data.read('168_PksExpertsPreDrawIssue', '');
+	// 期号
+	let preDrawIssue = String(latestItem.preDrawIssue);
+	if (tmpDrawIssue == preDrawIssue) {
+		return;
+	}
+	magicJS.data.write('168_PksExpertsPreDrawIssue', preDrawIssue);
+
 	let turnOneCost = Math.pow(2, latestItem.rank - 1);
 	let recommendCode = latestItem.recommendCode;
 	let maxBetAmount = getPlanLotteryMaxBetAmount();
 
-	let tipsMsg = `专家[${latestItem.userName}]推荐${latestItem.recommendTypeDesc}:${recommendCode} 准确率:${latestItem.winningProbability} 期数:${latestItem.rank} 期号:${latestItem.preDrawIssue}`;
+	let tipsMsg = `专家[${latestItem.userName}]推荐${latestItem.recommendTypeDesc}:${recommendCode} 准确率:${latestItem.winningProbability} 期数:${latestItem.rank} 期号:${preDrawIssue}`;
 	magicJS.logger.info(tipsMsg);
 
 	if (isPlanLotteryAutoBet()) {
-		let betRet = await tryDragonBet(latestItem.preDrawIssue, ranking, recommendCode, turnOneCost, maxBetAmount);
+		let betRet = await tryDragonBet(preDrawIssue, ranking, recommendCode, turnOneCost, maxBetAmount);
 	}
 	magicJS.notification.appendNotifyInfo(tipsMsg);
 }