zhangdongming пре 9 месеци
родитељ
комит
4480c19ec0
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      Service/VivoPushService/push_admin/APISenderBase.py

+ 1 - 1
Service/VivoPushService/push_admin/APISenderBase.py

@@ -53,7 +53,7 @@ def _http_call(url, method, token, **message):
         req.add_header('authToken', token)
     req.add_header('Content-Type', 'application/json;charset=UTF-8')
     try:
-        resp = urllib.request.urlopen(req, timeout=5)
+        resp = urllib.request.urlopen(req, timeout=10)
         r = _parse_json(resp.read().decode())
         return r
     except urllib.error.HTTPError as e: