更新 ele/auto-meal-complete.user.js
This commit is contained in:
parent
f510d55e8e
commit
eea4e3aa5e
@ -141,10 +141,10 @@
|
|||||||
&& !cook.deliveryInfo.deliveryDistance.endsWith('km')
|
&& !cook.deliveryInfo.deliveryDistance.endsWith('km')
|
||||||
&& parseInt(cook.deliveryInfo.deliveryDistance) < 100)
|
&& parseInt(cook.deliveryInfo.deliveryDistance) < 100)
|
||||||
let cookTime = cook.mealPreparationInfo.cookTime = ((Date.now() - new Date(cook.activeTime).getTime()) / 1000).toFixed(0)
|
let cookTime = cook.mealPreparationInfo.cookTime = ((Date.now() - new Date(cook.activeTime).getTime()) / 1000).toFixed(0)
|
||||||
cook.mealPreparationInfo.submitLeft = Math.min(ele.autoSubmitMaxCookTime - cookTime,
|
cook.mealPreparationInfo.submitLeft =
|
||||||
Math.max(cook.mealPreparationInfo.minMealCompleteTimeCount,
|
Math.max(cook.mealPreparationInfo.minMealCompleteTimeCount, Math.min(ele.autoSubmitMaxCookTime - cookTime,
|
||||||
cook.mealPreparationInfo.commonShowTime - (deliveOnShop ? ele.autoSubmitLeftTimeWhenOnShop : ele.autoSubmitLeftTime),
|
cook.mealPreparationInfo.commonShowTime - (deliveOnShop ? ele.autoSubmitLeftTimeWhenOnShop : ele.autoSubmitLeftTime))
|
||||||
)).toFixed(0)
|
).toFixed(0)
|
||||||
}
|
}
|
||||||
async function syncOrders() {
|
async function syncOrders() {
|
||||||
let originCount = ele.processOrders.length
|
let originCount = ele.processOrders.length
|
||||||
|
Loading…
Reference in New Issue
Block a user