소스 검색

Merge branch 'ths_replace_url' into debug

Roc 1 년 전
부모
커밋
c896561759
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      services/base_from_ths_http.go

+ 1 - 1
services/base_from_ths_http.go

@@ -208,7 +208,7 @@ func postCurl(urlStr string, dataMap map[string]interface{}, num int) (body []by
 	utils.FileLog.Info(fmt.Sprint("post request url:", urlStr, ";token:", token, ";params:", reqStr, ";response:", string(body)))
 
 	//如果是token失效,同时只是第一次请求(没有尝试强制刷新token,那么重新请求)
-	if utils.InArrayByInt([]int{-1010}, int(response.ErrorCode)) && num <= 0 {
+	if utils.InArrayByInt([]int{-1010, -1302}, int(response.ErrorCode)) && num <= 0 {
 		//token失效
 		_, tmpErr := refreshAccessToken()
 		if tmpErr != nil {