diff --git a/test/service/client.py b/test/service/client.py index 034ff4f..1c2ceb3 100644 --- a/test/service/client.py +++ b/test/service/client.py @@ -9,7 +9,7 @@ print(os.environ) if __name__ == "__main__": import requests - url = "http://127.0.0.1:8011" + url = "http://code.quant.cm" resp = requests.post(url, json={"code": code}) print(resp.json()["msg"]) diff --git a/test/service/server.py b/test/service/server.py index 9518c66..e22532e 100644 --- a/test/service/server.py +++ b/test/service/server.py @@ -35,7 +35,6 @@ def hello_world(): out = "" try: log_path = f"/home/rocker/containers/{_id}/upper/logs/log" - print(f"读取: {log_path}") with open(log_path) as f: out = f.read() except Exception as e: @@ -47,4 +46,4 @@ def hello_world(): return {"msg": out, code: code, "id": _id} if __name__ == "__main__": - app.run(host='0.0.0.0', port=8011, threaded=True) \ No newline at end of file + app.run(host="0.0.0.0", port=8011, threaded=True) \ No newline at end of file