|
|
|
|
@ -166,7 +166,15 @@ func (s *User) OnReport(msg *pb.Report) {
|
|
|
|
|
s.SendUserMsg(&pb.ReportResult{Result: pb.ERROR_CODE_FAIL})
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
s.SendUserMsg(&pb.ReportResult{Result: pb.ERROR_CODE_SUCCESS})
|
|
|
|
|
var openIdList []string
|
|
|
|
|
for _, info := range msg.Info {
|
|
|
|
|
openIdList = append(openIdList, info.OpenId)
|
|
|
|
|
}
|
|
|
|
|
result := redis.GetAudienceInfoList(s.appId, openIdList)
|
|
|
|
|
s.SendUserMsg(&pb.ReportResult{
|
|
|
|
|
Result: pb.ERROR_CODE_SUCCESS,
|
|
|
|
|
Info: result,
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
func (s *User) OnGetRank(msg *pb.GetRank) {
|
|
|
|
|
rankList, err := redis.GetRank(s.appId, msg.TopCount)
|
|
|
|
|
|