|
@@ -41,17 +41,19 @@ func (l *NewestBiddingLogic) NewestBidding(in *bxbase.NewestBiddingReq) (*bxbase
|
|
List: []*bxbase.NewestList{},
|
|
List: []*bxbase.NewestList{},
|
|
},
|
|
},
|
|
}
|
|
}
|
|
- log.Println("userid:", in.UserId)
|
|
|
|
rks := MC.If(in.UserId != "", in.UserId, in.City).(string)
|
|
rks := MC.If(in.UserId != "", in.UserId, in.City).(string)
|
|
|
|
+ log.Println(rks, "userid:", in.UserId)
|
|
redisByte, err := redis.GetBytes("other", "p1_indexMessage_new_"+rks)
|
|
redisByte, err := redis.GetBytes("other", "p1_indexMessage_new_"+rks)
|
|
- log.Println(len(*redisByte))
|
|
|
|
- if redisByte != nil && len(*redisByte) > 0 && err != nil {
|
|
|
|
- err := json.Unmarshal(*redisByte, res.Data)
|
|
|
|
- if err != nil {
|
|
|
|
- res.ErrCode = -1
|
|
|
|
- res.ErrMsg = fmt.Sprintf("读取缓存 序列化异常,err:%s", err.Error())
|
|
|
|
|
|
+ if err == nil {
|
|
|
|
+ log.Println(len(*redisByte))
|
|
|
|
+ if redisByte != nil && len(*redisByte) > 0 && err != nil {
|
|
|
|
+ err := json.Unmarshal(*redisByte, res.Data)
|
|
|
|
+ if err != nil {
|
|
|
|
+ res.ErrCode = -1
|
|
|
|
+ res.ErrMsg = fmt.Sprintf("读取缓存 序列化异常,err:%s", err.Error())
|
|
|
|
+ }
|
|
|
|
+ return res
|
|
}
|
|
}
|
|
- return res
|
|
|
|
}
|
|
}
|
|
log.Println("-------------------0")
|
|
log.Println("-------------------0")
|
|
//登录用户
|
|
//登录用户
|