docs: 补充mem_scanner和web_setup SOP;优化代码风格和上下文管理

This commit is contained in:
Liang Jiaqing
2026-02-16 22:33:50 +08:00
parent dbc28fbc35
commit 67c7b3fa71
5 changed files with 62 additions and 15 deletions

View File

@@ -247,10 +247,7 @@ class TMWebDriver:
return result['data']
def _remote_cmd(self, cmd):
resp = requests.post(self.remote,
headers={"Content-Type": "application/json"},
json=cmd).json()
return resp
return requests.post(self.remote, headers={"Content-Type": "application/json"}, json=cmd).json()
def get_all_sessions(self):
if self.is_remote: