Skip to content

Commit

Permalink
🐛 修复无法使用adb的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Akegarasu committed Nov 15, 2021
1 parent 1d8ca53 commit f115c5e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ok-derby-backend/api/mission.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__)
Expand All @@ -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('游戏未运行,请启动游戏再运行')
Expand Down

0 comments on commit f115c5e

Please sign in to comment.