Commit ce0e781c authored by joliu's avatar joliu

标准化输出为json

parent 6be997bc
......@@ -88,7 +88,7 @@ class ThreadedTCPRequestHandler(socketserver.BaseRequestHandler):
errorFlag = True
# 返回控制命令执行结果
jresp = json.dumps((status, str(output)))
jresp = json.dumps((status, json.dumps(output)))
try:
self.request.sendall(jresp.encode())
except socket.error as err_msg:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment