diff --git a/business/jxstore/act/act.go b/business/jxstore/act/act.go index 281408bce..fcc73bd64 100644 --- a/business/jxstore/act/act.go +++ b/business/jxstore/act/act.go @@ -1757,6 +1757,9 @@ func GetVendorPopActDetail(ctx *jxcontext.Context, vendorID, storeID, actID int) } func GetNewVendorPopActs(ctx *jxcontext.Context) (err error) { + var ( + db = dao.GetDB() + ) actList, err := api.EbaiAPI.GetMainActivityList(utils.Str2Int(ebai.EbaiSupplierIDhc)) if err != nil { return err @@ -1797,5 +1800,15 @@ func GetNewVendorPopActs(ctx *jxcontext.Context) (err error) { } } } + storeMaps, _ := dao.GetStoresMapList(db, []int{model.VendorIDMTWM}, nil, []int{model.StoreStatusOpened, model.StoreStatusClosed, model.StoreStatusHaveRest}, model.StoreStatusOpened, model.YES, "", "", "") + for _, v := range storeMaps { + cList, _ := api.MtwmAPI.GetCenterList(v.VendorStoreID) + for _, vv := range cList { + result, _ := api.MtwmAPI.GetInviteDetail(vv.ID, v.VendorStoreID) + if result.Status != 2 { + send(model.VendorIDMTWM, vv.Name, result.BriefIntroduction) + } + } + } return err }