26 lines
551 B
Go
26 lines
551 B
Go
package maincity
|
|
|
|
import (
|
|
"go_dreamfactory/comm"
|
|
"go_dreamfactory/pb"
|
|
)
|
|
|
|
func (this *apiComp) OnlinePlayerCheck(session comm.IUserSession, req *pb.MainCityOnlinePlayerReq) (errdata *pb.ErrorData) {
|
|
|
|
return
|
|
}
|
|
|
|
// 查看某一封邮件
|
|
func (this *apiComp) OnlinePlayer(session comm.IUserSession, req *pb.MainCityOnlinePlayerReq) (errdata *pb.ErrorData) {
|
|
var (
|
|
friends []*pb.BaseUserInfo
|
|
uids []string
|
|
)
|
|
friends = this.module.model.getplayerPos(session.GetUserId())
|
|
for _, v := range friends {
|
|
uids = append(uids, v.Uid)
|
|
}
|
|
|
|
return
|
|
}
|