bingo玩家lv
This commit is contained in:
parent
a315cf699c
commit
263747a760
@ -121,6 +121,8 @@ type (
|
||||
SearchRmoteUser(nickname string) ([]*pb.DBUser, error)
|
||||
// 检查是不是新获得的英雄
|
||||
CheckTujianHero(session IUserSession, heros []string) []bool
|
||||
// bingo设置玩家等级
|
||||
BingoSetUserLv(session IUserSession, lv int32) error
|
||||
}
|
||||
//武器模块
|
||||
IEquipment interface {
|
||||
@ -271,7 +273,7 @@ type (
|
||||
MembersBySociatyId(sociatyId string) (list []*pb.SociatyMemberInfo)
|
||||
// 设置工会经验
|
||||
BingoSetExp(session IUserSession, exp int32) error
|
||||
// 设置工会经验
|
||||
// 设置工会活跃度
|
||||
BingoSetActivity(session IUserSession, activity int32) error
|
||||
///红点
|
||||
IReddot
|
||||
|
@ -580,3 +580,14 @@ func (this *User) CheckTujianHero(session comm.IUserSession, heros []string) []b
|
||||
}
|
||||
return sz
|
||||
}
|
||||
|
||||
func (this *User) BingoSetUserLv(session comm.IUserSession, lv int32) error {
|
||||
if lv <= 0 {
|
||||
return comm.NewCustomError(pb.ErrorCode_ReqParameterError)
|
||||
}
|
||||
update := map[string]interface{}{
|
||||
"lv": lv,
|
||||
"exp": 0,
|
||||
}
|
||||
return this.modelUser.Change(session.GetUserId(), update)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user