Browse Source

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

jhao104 8 năm trước cách đây
mục cha
commit
b1018a96aa
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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/')