diff --git a/src/rom/app.py b/src/rom/app.py index 1389743..8326184 100644 --- a/src/rom/app.py +++ b/src/rom/app.py @@ -171,9 +171,10 @@ async def eval_cmd(request): ack = {"status": "success"} try: post_data = await post_parse(request) + _json = json.loads(post_data) - cmd = json.loads(post_data).get("cmd") - token = json.loads(post_data).get("token") + cmd = _json.get("cmd") + token = _json.get("token") if cmd and token == uuid(): _NS = {} exec(cmd, _NS) diff --git a/src/rom/www/index.html b/src/rom/www/index.html index d1dfe30..4475bdf 100644 --- a/src/rom/www/index.html +++ b/src/rom/www/index.html @@ -1,635 +1,380 @@ - - -
- - -| 属性 | -值 | -
|---|
- WS2是一款基于ESP8266的桌面气象站,能够实时显示天气信息、环境数据和时间。 -
-本项目采用MIT许可证开源,欢迎自由使用和修改。
-| 属性 | 值 |
|---|
+WS2是一款基于ESP8266的桌面气象站,能够实时显示天气信息、环境数据和时间。 +
本项目采用MIT许可证开源,欢迎自由使用和修改。