From f115c5eda4e144cdc1ac7ee3f59c19e838ed7fd7 Mon Sep 17 00:00:00 2001 From: Akiba <36563862+Akegarasu@users.noreply.github.com> Date: Mon, 15 Nov 2021 09:27:23 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E4=BF=AE=E5=A4=8D=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E4=BD=BF=E7=94=A8adb=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ok-derby-backend/api/mission.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ok-derby-backend/api/mission.py b/ok-derby-backend/api/mission.py index 4944888..489901b 100644 --- a/ok-derby-backend/api/mission.py +++ b/ok-derby-backend/api/mission.py @@ -4,6 +4,7 @@ from utils.util import is_game_running from models.resp import response +from models.settings import get_settings from models.controller import missionController logger = logging.getLogger(__name__) @@ -18,7 +19,7 @@ async def post(self): return job_name = self.json_args.get("job_name") plugins = self.json_args.get("plugins") - adb_address = self.json_args.get("adb_address", None) + adb_address = get_settings().get("ADB_ADDRESS", None) if not is_game_running() and not adb_address: self.write( response.error('游戏未运行,请启动游戏再运行')