上传代码

This commit is contained in:
liwei1dao 2024-02-29 18:25:24 +08:00
parent 7a39795fe1
commit 21dac90c7b
3 changed files with 3 additions and 3 deletions

View File

@ -53,7 +53,7 @@ func (this *apiComp) Wear(session comm.IUserSession, req *pb.ExclusiveWearReq) (
if errdata = this.module.ModuleHero.UpdateExclusive(session, hero, info); errdata != nil { if errdata = this.module.ModuleHero.UpdateExclusive(session, hero, info); errdata != nil {
return return
} }
this.module.equipmentsChangePush(session, []*pb.DB_Exclusive{info}) this.module.equipmentsChangePush(session, change)
session.SendMsg(string(this.module.GetType()), "wear", &pb.ExclusiveWearResp{Exclusives: info}) session.SendMsg(string(this.module.GetType()), "wear", &pb.ExclusiveWearResp{Exclusives: info})
return return
} }

View File

@ -216,7 +216,7 @@ func (this *exclusiveModel) updateExclusive(uid string, list []*pb.DB_Exclusive)
"exp": v.Exp, "exp": v.Exp,
"property": v.Property, "property": v.Property,
"commonskill": v.Commonskill, "commonskill": v.Commonskill,
"Exclusiveskill": v.Exclusiveskill, "exclusiveskill": v.Exclusiveskill,
} }
} }

View File

@ -29,7 +29,7 @@ type DB_Exclusive struct {
Id string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id" bson:"_id"` // 专武id Id string `protobuf:"bytes,1,opt,name=Id,proto3" json:"Id" bson:"_id"` // 专武id
CId string `protobuf:"bytes,2,opt,name=cId,proto3" json:"cId" bson:"cId"` // 配置Id CId string `protobuf:"bytes,2,opt,name=cId,proto3" json:"cId" bson:"cId"` // 配置Id
UId string `protobuf:"bytes,3,opt,name=uId,proto3" json:"uId" bson:"uid"` // 所属玩家Id UId string `protobuf:"bytes,3,opt,name=uId,proto3" json:"uId" bson:"uid"` // 所属玩家Id
Hero string `protobuf:"bytes,4,opt,name=hero,proto3" json:"hero" bson:"heroId"` // 挂在的英雄卡片id 未装备 填 '' Hero string `protobuf:"bytes,4,opt,name=hero,proto3" json:"hero" bson:"hero"` // 挂在的英雄卡片id 未装备 填 ''
Lv int32 `protobuf:"varint,5,opt,name=lv,proto3" json:"lv" bson:"lv"` //等级 Lv int32 `protobuf:"varint,5,opt,name=lv,proto3" json:"lv" bson:"lv"` //等级
Star int32 `protobuf:"varint,6,opt,name=star,proto3" json:"star" bson:"star"` //星级 Star int32 `protobuf:"varint,6,opt,name=star,proto3" json:"star" bson:"star"` //星级
Step int32 `protobuf:"varint,7,opt,name=step,proto3" json:"step"` // 阶 Step int32 `protobuf:"varint,7,opt,name=step,proto3" json:"step"` // 阶