Преглед на файлове

方便測試暫時把檢查規則拿掉

Mike преди 3 години
родител
ревизия
505908396d
променени са 1 файла, в които са добавени 6 реда и са изтрити 6 реда
  1. 6 6
      api/main.py

+ 6 - 6
api/main.py

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