This commit is contained in:
parent
eb414749c3
commit
aaacb47dad
@ -61,11 +61,11 @@ func (l *QuerySubscribeListLogic) QuerySubscribeList(req *types.QuerySubscribeLi
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 老版本(无 api-header)去掉排序最后一个套餐
|
// 老版本(无 api-header)去掉排序最后一个套餐
|
||||||
rawVersion, _ := l.ctx.Value(constant.CtxKeyAPIHeaderRaw).(string)
|
// rawVersion, _ := l.ctx.Value(constant.CtxKeyAPIHeaderRaw).(string)
|
||||||
useLatest := apiversion.UseLatest(rawVersion, apiversion.DefaultThreshold)
|
// useLatest := apiversion.UseLatest(rawVersion, apiversion.DefaultThreshold)
|
||||||
if !useLatest && len(list) > 0 {
|
// if !useLatest && len(list) > 0 {
|
||||||
list = list[:len(list)-1]
|
// list = list[:len(list)-1]
|
||||||
}
|
// }
|
||||||
|
|
||||||
resp.List = list
|
resp.List = list
|
||||||
resp.Total = int64(len(list))
|
resp.Total = int64(len(list))
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user