Browse Source

Merge branch 'master' of http://git.jojo21.top/shawenguan/Quantumult-X

shawenguan 1 year ago
parent
commit
16422fd9e3
3 changed files with 286 additions and 5 deletions
  1. 0 0
      Scripts/168/diiiLotteryHelper.js
  2. 281 0
      Scripts/168/pksExpertHelper.js
  3. 5 5
      Scripts/168/pksPlanHelper.js

+ 0 - 0
Scripts/168/diiiHelper.js → Scripts/168/diiiLotteryHelper.js


File diff suppressed because it is too large
+ 281 - 0
Scripts/168/pksExpertHelper.js


+ 5 - 5
Scripts/168/pksPlanHelper.js

@@ -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;

Some files were not shown because too many files changed in this diff