x
Some checks failed
Build docker and publish / build (20.15.1) (push) Failing after 7m51s

This commit is contained in:
shanshanzhong 2026-03-28 22:44:22 -07:00
parent eb414749c3
commit aaacb47dad

View File

@ -61,11 +61,11 @@ func (l *QuerySubscribeListLogic) QuerySubscribeList(req *types.QuerySubscribeLi
}
// 老版本(无 api-header去掉排序最后一个套餐
rawVersion, _ := l.ctx.Value(constant.CtxKeyAPIHeaderRaw).(string)
useLatest := apiversion.UseLatest(rawVersion, apiversion.DefaultThreshold)
if !useLatest && len(list) > 0 {
list = list[:len(list)-1]
}
// rawVersion, _ := l.ctx.Value(constant.CtxKeyAPIHeaderRaw).(string)
// useLatest := apiversion.UseLatest(rawVersion, apiversion.DefaultThreshold)
// if !useLatest && len(list) > 0 {
// list = list[:len(list)-1]
// }
resp.List = list
resp.Total = int64(len(list))