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: