fix bugs introduce today
This commit is contained in:
parent
796e0fab8b
commit
0636b68fb0
2 changed files with 2 additions and 2 deletions
|
|
@ -83,7 +83,7 @@ async def _handle_appsvr_app(request: Request) -> Response:
|
||||||
def _include_product_iot_map_info(bot: dict[str, Any]) -> dict[str, Any]:
|
def _include_product_iot_map_info(bot: dict[str, Any]) -> dict[str, Any]:
|
||||||
result = copy.deepcopy(bot)
|
result = copy.deepcopy(bot)
|
||||||
|
|
||||||
for botprod in get_product_iot_map():
|
for botprod in get_product_iot_map()[0]:
|
||||||
if botprod["classid"] == result["class"]:
|
if botprod["classid"] == result["class"]:
|
||||||
result["UILogicId"] = botprod["product"]["UILogicId"]
|
result["UILogicId"] = botprod["product"]["UILogicId"]
|
||||||
result["ota"] = botprod["product"]["ota"]
|
result["ota"] = botprod["product"]["ota"]
|
||||||
|
|
|
||||||
|
|
@ -81,7 +81,7 @@ async def _handle_usersapi(request: Request) -> Response:
|
||||||
}
|
}
|
||||||
else: # EcoVacs Home LoginByITToken
|
else: # EcoVacs Home LoginByITToken
|
||||||
login_token = loginByItToken(postbody["token"])
|
login_token = loginByItToken(postbody["token"])
|
||||||
if not login_token:
|
if login_token:
|
||||||
body = {
|
body = {
|
||||||
"resource": postbody["resource"],
|
"resource": postbody["resource"],
|
||||||
"result": "ok",
|
"result": "ok",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue