Explorar o código

[update]没有代理时 不返回None

jhao104 %!s(int64=8) %!d(string=hai) anos
pai
achega
b1018a96aa
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      Api/ProxyApi.py

+ 1 - 1
Api/ProxyApi.py

@@ -44,7 +44,7 @@ def index():
 @app.route('/get/')
 def get():
     proxy = ProxyManager().get()
-    return proxy
+    return proxy if proxy else 'no proxy!'
 
 
 @app.route('/refresh/')