更新 ele/auto-meal-complete.user.js

This commit is contained in:
502647092 2023-12-10 07:00:54 +00:00
parent f510d55e8e
commit eea4e3aa5e

View File

@ -141,10 +141,10 @@
&& !cook.deliveryInfo.deliveryDistance.endsWith('km')
&& parseInt(cook.deliveryInfo.deliveryDistance) < 100)
let cookTime = cook.mealPreparationInfo.cookTime = ((Date.now() - new Date(cook.activeTime).getTime()) / 1000).toFixed(0)
cook.mealPreparationInfo.submitLeft = Math.min(ele.autoSubmitMaxCookTime - cookTime,
Math.max(cook.mealPreparationInfo.minMealCompleteTimeCount,
cook.mealPreparationInfo.commonShowTime - (deliveOnShop ? ele.autoSubmitLeftTimeWhenOnShop : ele.autoSubmitLeftTime),
)).toFixed(0)
cook.mealPreparationInfo.submitLeft =
Math.max(cook.mealPreparationInfo.minMealCompleteTimeCount, Math.min(ele.autoSubmitMaxCookTime - cookTime,
cook.mealPreparationInfo.commonShowTime - (deliveOnShop ? ele.autoSubmitLeftTimeWhenOnShop : ele.autoSubmitLeftTime))
).toFixed(0)
}
async function syncOrders() {
let originCount = ele.processOrders.length