Selaa lähdekoodia

250105-1代码。

baoyubo 4 kuukautta sitten
vanhempi
commit
3364589b02
1 muutettua tiedostoa jossa 7 lisäystä ja 1 poistoa
  1. 7 1
      routers/api/ThreeProofingResponsible/person.py

+ 7 - 1
routers/api/ThreeProofingResponsible/person.py

@@ -108,6 +108,7 @@ async def create_contact(
     except Exception as e:
         # 处理异常
         db.rollback()
+        traceback.print_exc()
         raise HTTPException(status_code=500, detail=str(e))
 
 
@@ -189,6 +190,7 @@ async def update_contact(
     except Exception as e:
         # 处理异常
         db.rollback()
+        traceback.print_exc()
         raise HTTPException(status_code=500, detail=str(e))
 
 
@@ -261,6 +263,7 @@ async def get_emergency_contact_list(
 
     except Exception as e:
         # 处理异常
+        traceback.print_exc()
         raise HTTPException(status_code=500, detail=str(e))
 
 
@@ -318,7 +321,7 @@ async def get_emergency_contact_id_info(
                     other_type_info = get_other_type_info_by_id(db,type_other_info.other_type_id)
                     type_data['other_type_name'] = other_type_info.type_name
                 type_data['other_type_id']=type_other_info.other_type_id
-                type_data['denger_point_name']=type_other_info.denger_point_name
+                type_data['1']=type_other_info.denger_point_name
                 type_data['other_type_2_name']=type_other_info.other_type_2_name
 
             contact_result['type_list'].append(type_data)
@@ -330,6 +333,7 @@ async def get_emergency_contact_id_info(
         }
     except Exception as e:
         # 处理异常
+        traceback.print_exc()
         raise HTTPException(status_code=500, detail=str(e))
 
 
@@ -367,6 +371,7 @@ async def delete_emergency_plans(
         }
     except Exception as e:
         # 处理异常
+        traceback.print_exc()
         raise HTTPException(status_code=500, detail=str(e))
 
 
@@ -397,6 +402,7 @@ async def delete_emergency_plans(
         }
     except Exception as e:
         # 处理异常
+        traceback.print_exc()
         raise HTTPException(status_code=500, detail=str(e))
 
 #