Browse Source

超时时间

zhuhao 2 years ago
parent
commit
8526634d2a
1 changed files with 1 additions and 2 deletions
  1. 1 2
      IMCS_CCS/Service/Impl/ApiRequestService.cs

+ 1 - 2
IMCS_CCS/Service/Impl/ApiRequestService.cs

@@ -38,8 +38,7 @@ namespace IMCS.CCS.Service.Impl
                     headerValue = headerKeyValue.Split('=')[1];
                 }
 
-                IFlurlRequest flurlRequest = apiUrl.WithHeader(headerKey, headerValue);
-                flurlRequest.WithTimeout(10);
+                IFlurlRequest flurlRequest = apiUrl.WithHeader(headerKey, headerValue).WithTimeout(100) ; 
                 if (flurlRequest == null)
                 {
                     return (false, "flurlRequest 空指针!");