Prechádzať zdrojové kódy

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

shawenguan 1 rok pred
rodič
commit
16422fd9e3

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


Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 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;

Niektoré súbory nie sú zobrazené, pretože je v týchto rozdielových dátach zmenené mnoho súborov