From e4cc9d3dd9897cc6c8747e46e57328a45ffd412b Mon Sep 17 00:00:00 2001 From: suyl <770236076@qq.com> Date: Tue, 25 May 2021 16:14:51 +0800 Subject: [PATCH] a --- business/jxstore/cms/user2.go | 4 ++++ business/jxstore/misc/misc.go | 4 ++++ controllers/cms_sku.go | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/business/jxstore/cms/user2.go b/business/jxstore/cms/user2.go index 0fd000996..ca6782bf8 100644 --- a/business/jxstore/cms/user2.go +++ b/business/jxstore/cms/user2.go @@ -1197,3 +1197,7 @@ func GetUserStoreAuth(ctx *jxcontext.Context, storeID int) (outStoreID int, err } return storeID, err } + +func SendQywxPeopleCount(ctx *jxcontext.Context) (err error) { + return err +} diff --git a/business/jxstore/misc/misc.go b/business/jxstore/misc/misc.go index 637dbc935..705e2f93c 100644 --- a/business/jxstore/misc/misc.go +++ b/business/jxstore/misc/misc.go @@ -268,6 +268,10 @@ func Init() { ScheduleTimerFunc("GetNewVendorPopActs", func() { act.GetNewVendorPopActs(jxcontext.AdminCtx) }, dailyHeartbeat) + //企业微信群人数通告 + ScheduleTimerFunc("SendQywxPeopleCount", func() { + cms.SendQywxPeopleCount(jxcontext.AdminCtx) + }, dailyHeartbeat) } ScheduleTimerFunc("AutoSaleStoreSku", func() { cms.AutoSaleStoreSku(jxcontext.AdminCtx, nil, false) diff --git a/controllers/cms_sku.go b/controllers/cms_sku.go index 42098709d..0f9196198 100644 --- a/controllers/cms_sku.go +++ b/controllers/cms_sku.go @@ -745,7 +745,7 @@ func (c *SkuController) GetSkuNamesNew() { // @router /UpdateMtCatToJd [post] func (c *SkuController) UpdateMtCatToJd() { c.callUpdateMtCatToJd(func(params *tSkuUpdateMtCatToJdParams) (retVal interface{}, errCode string, err error) { - + err = cms.UpdateMtCatToJd(params.Ctx, params.MtCatID, params.JdCatID) return retVal, "", err }) }