上传使用代码
This commit is contained in:
parent
bc662e1986
commit
e26f48d2c8
@ -754,7 +754,7 @@ func (this *ModelItemsComp) useitem(session comm.IUserSession, gid string, amoun
|
||||
}
|
||||
case itemuse_randombox: //宝箱
|
||||
user := this.module.ModuleUser.GetUser(session.GetUserId())
|
||||
if prop := this.module.ModuleTools.GetGroupDataByLottery(itemcf.BoxId, user.Vip, user.Lv); len(prop) > 0 {
|
||||
if prop := this.module.ModuleTools.GetGroupDataByLottery(itemcf.BoxId, user.Vip, user.Lv); len(prop) == 0 {
|
||||
//if prop = this.module.configure.GetDropData(itemcf.BoxId); prop == nil {
|
||||
errdata = &pb.ErrorData{
|
||||
Code: pb.ErrorCode_ConfigNoFound,
|
||||
|
Loading…
Reference in New Issue
Block a user