feat(sms): 新增节点短信提醒(审核未通过/被租用需辅助/上架未成交)
This commit is contained in:
@@ -23,3 +23,17 @@ func (p *MockProvider) SendLoginCode(ctx context.Context, phone string, code str
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
func (p *MockProvider) SendTemplate(ctx context.Context, req TemplateRequest) error {
|
||||
if err := ctx.Err(); err != nil {
|
||||
return err
|
||||
}
|
||||
if p.log != nil {
|
||||
p.log.Info("本地模板短信(未真实发送)",
|
||||
zap.String("phone", maskPhone(req.Phone)),
|
||||
zap.String("template_code", req.TemplateCode),
|
||||
zap.Any("params", req.Params),
|
||||
)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user