Эх сурвалжийг харах

完善不传status的处理逻辑2

locky 3 жил өмнө
parent
commit
96432aa89a

+ 2 - 1
Controller/DetectControllerV2.py

@@ -253,7 +253,8 @@ class DetectControllerViewV2(View):
                 detectUrls = "{DETECT_PUSH_DOMAIN_V2}notifyV2/push?etk={etk}&company_secrete={company_secrete}&region={region}". \
                 detectUrls = "{DETECT_PUSH_DOMAIN_V2}notifyV2/push?etk={etk}&company_secrete={company_secrete}&region={region}". \
                     format(etk=etk, company_secrete=company_secrete, DETECT_PUSH_DOMAIN_V2=urls, region=region)
                     format(etk=etk, company_secrete=company_secrete, DETECT_PUSH_DOMAIN_V2=urls, region=region)
                 return response.json(0, {'detectUrl': detectUrl, 'detectUrls': detectUrls})
                 return response.json(0, {'detectUrl': detectUrl, 'detectUrls': detectUrls})
-
+            else:
+                return response.json(173)
         except Exception as e:
         except Exception as e:
             return response.json(500, repr(e))
             return response.json(500, repr(e))