|
@@ -312,6 +312,10 @@ async def get_emergency_contact_list(
|
|
|
# 执行分页查询
|
|
|
contact_infos = query.offset((page - 1) * pageSize).limit(pageSize).all()
|
|
|
|
|
|
+ for info in contact_infos:
|
|
|
+ if three_proofing_responsible_person_data.sign_valid_row(info) == False:
|
|
|
+ raise HmacException(500, "三防责任人管理人员信息表验证异常,已被非法篡改")
|
|
|
+
|
|
|
# 将查询结果转换为列表形式的字典
|
|
|
contact_infos_list = []
|
|
|
for info in contact_infos:
|
|
@@ -355,6 +359,12 @@ async def get_emergency_contact_list(
|
|
|
"data": contact_infos_list,
|
|
|
"total": total_items
|
|
|
}
|
|
|
+
|
|
|
+ except HmacException as e:
|
|
|
+ return {
|
|
|
+ "code": e.code,
|
|
|
+ "msg": e.msg
|
|
|
+ }
|
|
|
|
|
|
except Exception as e:
|
|
|
# 处理异常
|