上传专武代码
This commit is contained in:
parent
cf1cabff58
commit
3a1981b01d
@ -46,11 +46,11 @@ func (this *modelComp) QueryUserEquipmentsByIds(uId string, ids []string) (equip
|
|||||||
}
|
}
|
||||||
|
|
||||||
// /查询用户的武器背包
|
// /查询用户的武器背包
|
||||||
func (this *modelComp) QueryUserEquipments(uId string) (equipments []*pb.DB_Exclusive, err error) {
|
func (this *modelComp) QueryUserEquipments(uId string) (exclusives []*pb.DB_Exclusive, err error) {
|
||||||
var (
|
var (
|
||||||
model *db.DBModel
|
model *db.DBModel
|
||||||
)
|
)
|
||||||
equipments = make([]*pb.DB_Exclusive, 0)
|
exclusives = make([]*pb.DB_Exclusive, 0)
|
||||||
if this.module.IsCross() {
|
if this.module.IsCross() {
|
||||||
if model, err = this.module.GetDBModelByUid(uId, this.TableName); err != nil {
|
if model, err = this.module.GetDBModelByUid(uId, this.TableName); err != nil {
|
||||||
this.module.Errorln(err)
|
this.module.Errorln(err)
|
||||||
@ -68,7 +68,7 @@ func (this *modelComp) QueryUserEquipments(uId string) (equipments []*pb.DB_Excl
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
func (this *modelComp) addEquipments(uid string, equips []*pb.DB_Exclusive) (err error) {
|
func (this *modelComp) addEquipments(uid string, exclusives []*pb.DB_Exclusive) (err error) {
|
||||||
var (
|
var (
|
||||||
model *db.DBModel
|
model *db.DBModel
|
||||||
equipsMap map[string]*pb.DB_Exclusive = make(map[string]*pb.DB_Exclusive)
|
equipsMap map[string]*pb.DB_Exclusive = make(map[string]*pb.DB_Exclusive)
|
||||||
@ -125,7 +125,7 @@ func (this *modelComp) DelEquipments(uId string, eIds []string) (change []*pb.DB
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 更新武器挂载信息
|
// 更新武器挂载信息
|
||||||
func (this *modelComp) UpdateByHeroId(uid string, equipments ...*pb.DB_Equipment) (err error) {
|
func (this *modelComp) UpdateByHeroId(uid string, exclusives ...*pb.DB_Equipment) (err error) {
|
||||||
var (
|
var (
|
||||||
model *db.DBModel
|
model *db.DBModel
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user