美团饿百流量活动通知

This commit is contained in:
苏尹岚
2021-03-30 14:35:15 +08:00
parent 06685fa638
commit 02bdeb7b9d

View File

@@ -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
}