更新 ele/auto-meal-complete.user.js
This commit is contained in:
parent
f510d55e8e
commit
eea4e3aa5e
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user