完善tidevice逻辑
This commit is contained in:
@@ -2,12 +2,10 @@ import json
|
||||
import os
|
||||
import socket
|
||||
import threading
|
||||
import time
|
||||
from pathlib import Path
|
||||
from queue import Queue
|
||||
from typing import Any, Dict
|
||||
|
||||
from Entity.AnchorModel import AnchorModel
|
||||
from Utils.AiUtils import AiUtils
|
||||
from Utils.IOSAIStorage import IOSAIStorage
|
||||
from Utils.LogManager import LogManager
|
||||
@@ -19,7 +17,7 @@ from Entity.ResultData import ResultData
|
||||
from Utils.ControlUtils import ControlUtils
|
||||
from Utils.ThreadManager import ThreadManager
|
||||
from script.ScriptManager import ScriptManager
|
||||
from Entity.Variables import anchorList, prologueList, addModelToAnchorList, removeModelFromAnchorList
|
||||
from Entity.Variables import addModelToAnchorList
|
||||
import Entity.Variables as ev
|
||||
from Utils.JsonUtils import JsonUtils
|
||||
|
||||
@@ -268,7 +266,7 @@ def stopScript():
|
||||
udid = body.get("udid")
|
||||
LogManager.method_info(f"接口收到 /stopScript udid={udid}", method="task")
|
||||
code, msg = ThreadManager.stop(udid)
|
||||
return ResultData(code=code, data="", message=msg).toJson()
|
||||
return ResultData(code=code, data=[], message=msg).toJson()
|
||||
|
||||
|
||||
# 关注打招呼
|
||||
@@ -576,7 +574,7 @@ def delete_last_message():
|
||||
def stopAllTask():
|
||||
idList = request.get_json()
|
||||
code, msg = ThreadManager.batch_stop(idList)
|
||||
return ResultData(code, "", msg).toJson()
|
||||
return ResultData(code, [], msg).toJson()
|
||||
|
||||
|
||||
# @app.route("/killWda", methods=['POST'])
|
||||
|
||||
Reference in New Issue
Block a user