|
@@ -286,9 +286,10 @@ async def get_emergency_contact_id_info(
|
|
|
|
|
|
contact = get_person_info_by_user_id(db,user_id)
|
|
|
if not contact:
|
|
|
- return JSONResponse(status_code=404, content={
|
|
|
- 'errcode': 404,
|
|
|
- 'errmsg': '联系人不存在'
|
|
|
+ return JSONResponse(status_code=200, content={
|
|
|
+ 'code': 200,
|
|
|
+ 'msg': '联系人不存在',
|
|
|
+ "data":None
|
|
|
})
|
|
|
# 将查询结果转换为列表形式的字典
|
|
|
area_info = id_get_area_info(db,contact.area_code)
|