|
@@ -177,12 +177,12 @@ func DocsClassUpdate(cron config.Cron) {
|
|
|
// 合作商会员信息更新,每天一点开始
|
|
|
func UpdateDocsUserMemberTask(ctx context.Context) {
|
|
|
defer common.Catch()
|
|
|
- cron.CrontabByTicker(ctx, Cron.UpdateDocsClass, DocsUserMemberUpdate)
|
|
|
+ cron.CrontabByTicker(ctx, Cron.UpdateDocsMember, DocsUserMemberUpdate)
|
|
|
}
|
|
|
|
|
|
func DocsUserMemberUpdate(cron config.Cron) {
|
|
|
log.Println("update docs user member state task start :", date.NowFormat(date.Date_Full_Layout), cron)
|
|
|
- //获取分类详情
|
|
|
+ //直接更新合作商会员状态
|
|
|
if err := DocsUserMember(); err != nil {
|
|
|
log.Println("合作商会员信息更新 定时任务异常: ", err.Error())
|
|
|
}
|