上传购物中心

This commit is contained in:
liwei 2023-08-08 13:44:30 +08:00
parent eb835f6ae7
commit 552841d0f0
2 changed files with 4 additions and 1 deletions

View File

@ -334,6 +334,9 @@ const (
//守护者任务
TableHerotask = "herotask"
//购物中心
TableShopCenter = "shopcenter"
//如梦战令
TablekfDreamwarorder = "dreamwarorder"

View File

@ -23,7 +23,7 @@ type ModelShop struct {
func (this *ModelShop) Init(service core.IService, module core.IModule, comp core.IModuleComp, options core.IModuleOptions) (err error) {
err = this.MCompModel.Init(service, module, comp, options)
this.TableName = comm.TableHerotask
this.TableName = comm.TableShopCenter
this.module = module.(*ShopCenter)
this.DB.CreateIndex(core.SqlTable(this.TableName), mongo.IndexModel{
Keys: bsonx.Doc{{Key: "uid", Value: bsonx.Int32(1)}},