1.人脸验证执行操作成功
2.UI底图进行修改
This commit is contained in:
@ -126,6 +126,11 @@ NOTE_NAMES = {
|
||||
# 帧头同步字
|
||||
SYNC = b"\xEF\xAA"
|
||||
|
||||
#########################################################################################
|
||||
|
||||
|
||||
#########################################################################################
|
||||
|
||||
def xor_checksum(data: bytes) -> int:
|
||||
"""
|
||||
计算异或校验 (XOR),范围为整个帧的 MsgID + Size + Data 部分,
|
||||
@ -366,15 +371,15 @@ def parse_reply(data: bytes) -> dict:
|
||||
info["user_id"] = uid
|
||||
|
||||
# 自动生成提示消息
|
||||
if info.get("ok"):
|
||||
info["message"] = f"{info['mid_name']} 成功"
|
||||
inform_box : DialogInform = DialogInform()
|
||||
inform_box.information("提示", f"{info['mid_name']} 成功")
|
||||
if info["ok"]:
|
||||
if mid == CMD_VERIFY and "user_id" in info:
|
||||
info["message"] = (
|
||||
f"{info['mid_name']} 成功 - 用户ID: {info['user_id']}"
|
||||
)
|
||||
else:
|
||||
info["message"] = f"{info['mid_name']} 成功"
|
||||
else:
|
||||
info["message"] = f"{info['mid_name']} 失败: {info['result_name']}"
|
||||
inform_box : DialogInform = DialogInform()
|
||||
inform_box.information("提示", f"{info['mid_name']} 失败: {info['result_name']}")
|
||||
|
||||
|
||||
return info
|
||||
|
||||
|
||||
Reference in New Issue
Block a user