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