fix(player): 修复宠物等级查询接口返回值初始化问题 - 在PetBagController.Level方法中初始化BaseRes返回值 - 修正PetService.Pet_LEVEL_all查询语句,移除不必要的Fields()调用 - 优化数据库查询条件,确保正确获取等级大于100的宠物数据 ```
This commit is contained in:
@@ -57,7 +57,7 @@ func (c *PetBagController) GetSession(ctx context.Context, req *PetGetReq) (res
|
||||
func (c *PetBagController) Level(ctx context.Context, req *PetLevelReq) (res *cool.BaseRes, err error) {
|
||||
// m := gmap.New()
|
||||
r := service.NewUserService(0).Pet.Pet_LEVEL_all()
|
||||
|
||||
res = &cool.BaseRes{}
|
||||
ress := make([]PetLevelRes, 0)
|
||||
|
||||
for _, v := range r {
|
||||
|
||||
Reference in New Issue
Block a user