feat:刷新时上游异常/卡密不存在自动标记已上报失效

This commit is contained in:
2026-11-09 11:18:29 +08:00
parent 61d2aa47ea
commit f38f11ae96
5 changed files with 306 additions and 4 deletions
+1 -1
View File
@@ -848,7 +848,7 @@ func (c *RockClient) RefreshToken(ctx context.Context, bearerToken string, upstr
}
if resp.StatusCode != http.StatusOK {
return nil, fmt.Errorf("上游 refresh 接口返回错误码 %d: %s", resp.StatusCode, string(body))
return nil, &RockUpstreamStatusError{StatusCode: resp.StatusCode, Body: string(body)}
}
var res RockRefreshResponse