Pārlūkot izejas kodu

暫時移除檢查規則,方便測試

Mike 3 gadi atpakaļ
vecāks
revīzija
460ebb07ad
1 mainītis faili ar 2 papildinājumiem un 0 dzēšanām
  1. 2 0
      api/main.py

+ 2 - 0
api/main.py

@@ -107,12 +107,14 @@ async def create_req_detail(req:deco_request_detail):
     
     
     return_code = 0
     return_code = 0
     #return code 0=good, 1=email duplication, 2=phone duplication, 3= both duplicate
     #return code 0=good, 1=email duplication, 2=phone duplication, 3= both duplicate
+    '''
     if email_cnt>0 and phone_cnt==0:
     if email_cnt>0 and phone_cnt==0:
         return_code = 1
         return_code = 1
     if email_cnt==0 and phone_cnt>0:
     if email_cnt==0 and phone_cnt>0:
         return_code = 2
         return_code = 2
     if email_cnt>0 and phone_cnt>0:
     if email_cnt>0 and phone_cnt>0:
         return_code = 3
         return_code = 3
+    '''
     
     
     if return_code ==0 :
     if return_code ==0 :
         request_table = db['deco_request']
         request_table = db['deco_request']