|
@@ -54,7 +54,10 @@ def thread_runTask():
|
|
task_queue.pop()
|
|
task_queue.pop()
|
|
print(f"{task.name} 开始执行")
|
|
print(f"{task.name} 开始执行")
|
|
last_process = task.name
|
|
last_process = task.name
|
|
- task.run()
|
|
|
|
|
|
+ try:
|
|
|
|
+ task.run()
|
|
|
|
+ except Exception as e:
|
|
|
|
+ print(f"{task.name} 执行失败,错误原因:{e}")
|
|
cost_time = int(time.time() - current_time)
|
|
cost_time = int(time.time() - current_time)
|
|
send_status(f"{task.name} 执行完成,耗时{cost_time}秒")
|
|
send_status(f"{task.name} 执行完成,耗时{cost_time}秒")
|
|
print(f"{task.name} 执行完成,耗时{cost_time}秒")
|
|
print(f"{task.name} 执行完成,耗时{cost_time}秒")
|
|
@@ -283,8 +286,8 @@ def add_auto_task(isMaxCollect, isJina, isSimple = False, isAddStrengh = False,
|
|
if len(collectArr) == 1:
|
|
if len(collectArr) == 1:
|
|
collectArr = collectArr[0]
|
|
collectArr = collectArr[0]
|
|
while not event.is_set():
|
|
while not event.is_set():
|
|
- config = read_Dailycfg()
|
|
|
|
- print("config, check daily", config)
|
|
|
|
|
|
+ #config = read_Dailycfg()
|
|
|
|
+ #print("config, check daily", config)
|
|
|
|
|
|
if isSimple == False and is_within_n_minutes(get_todo_time("巨熊行动"), 20, 30):
|
|
if isSimple == False and is_within_n_minutes(get_todo_time("巨熊行动"), 20, 30):
|
|
print("in fight bear")
|
|
print("in fight bear")
|
|
@@ -308,7 +311,8 @@ def add_auto_task(isMaxCollect, isJina, isSimple = False, isAddStrengh = False,
|
|
elif isSimple == False and is_within_n_minutes(get_todo_time("巨熊行动"), 60, 0):
|
|
elif isSimple == False and is_within_n_minutes(get_todo_time("巨熊行动"), 60, 0):
|
|
# 设置无尽运行和启动的游戏为0
|
|
# 设置无尽运行和启动的游戏为0
|
|
always = True
|
|
always = True
|
|
- update_rungame_type(0)
|
|
|
|
|
|
+ #if g_switch:
|
|
|
|
+ #update_rungame_type(0)
|
|
send_status(f'巨熊行动:在60min内,切换到无尽模式')
|
|
send_status(f'巨熊行动:在60min内,切换到无尽模式')
|
|
stop_recording()
|
|
stop_recording()
|
|
|
|
|