|
@@ -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 {
|