diff --git a/modules/exclusive/api_wear.go b/modules/exclusive/api_wear.go index 500e9ec42..2cad9c775 100644 --- a/modules/exclusive/api_wear.go +++ b/modules/exclusive/api_wear.go @@ -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 { 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}) return } diff --git a/modules/exclusive/model.go b/modules/exclusive/model.go index d1c2dc44d..1a614d3d6 100644 --- a/modules/exclusive/model.go +++ b/modules/exclusive/model.go @@ -216,7 +216,7 @@ func (this *exclusiveModel) updateExclusive(uid string, list []*pb.DB_Exclusive) "exp": v.Exp, "property": v.Property, "commonskill": v.Commonskill, - "Exclusiveskill": v.Exclusiveskill, + "exclusiveskill": v.Exclusiveskill, } } diff --git a/pb/exclusive_db.pb.go b/pb/exclusive_db.pb.go index 736f04097..f3b058b6b 100644 --- a/pb/exclusive_db.pb.go +++ b/pb/exclusive_db.pb.go @@ -29,7 +29,7 @@ type DB_Exclusive struct { 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 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"` //等级 Star int32 `protobuf:"varint,6,opt,name=star,proto3" json:"star" bson:"star"` //星级 Step int32 `protobuf:"varint,7,opt,name=step,proto3" json:"step"` // 阶