This commit is contained in:
李子铭 2025-03-10 11:11:47 +08:00
parent 14b2491d07
commit 288d5e7005
1 changed files with 2 additions and 0 deletions

View File

@ -55,6 +55,7 @@ func (v *Cmb) registerNotifyTag(ctx context.Context, stockCreatorMchID, stockID
_, err := v.rdb.Rdb.Get(ctx, c.Key).Result() _, err := v.rdb.Rdb.Get(ctx, c.Key).Result()
if err == nil { if err == nil {
// 缓存存在,直接返回
return nil return nil
} }
@ -94,6 +95,7 @@ func (v *Cmb) registerNotifyTag(ctx context.Context, stockCreatorMchID, stockID
} }
if err = v.WechatCpnRepo.RegisterNotifyTag(ctx, stockID); err != nil { if err = v.WechatCpnRepo.RegisterNotifyTag(ctx, stockID); err != nil {
return v.WechatNotifyRegisterTagRepo.Fail(ctx, wechatNotifyTag.ID, err.Error()) return v.WechatNotifyRegisterTagRepo.Fail(ctx, wechatNotifyTag.ID, err.Error())
} }