Merge pull request 'by Robin at 20241217' (#916) from feat-IRONFANS-1000063-Robin into test

Reviewed-on: https://git.wishpal.cn/wishpal_ironfan/service/pulls/916
This commit is contained in:
chenhao 2024-12-17 16:53:41 +08:00
commit 2ee325a643
1 changed files with 8 additions and 1 deletions

View File

@ -58,7 +58,14 @@ func (p *Account) OpCreate(ctx *gin.Context, req *accountproto.OpCreateReq) erro
}
func (p *Account) OpUpdate(ctx *gin.Context, req *accountproto.OpUpdateReq) error {
err := p.store.UpdateAccount(ctx, req.Account)
err := interceptor.EncryptTagInterceptorInstance().Intercept(req.Account, "bcrypto")
if err != nil {
logger.Error("Account encryption err : %v", err)
return err
}
err = p.store.UpdateAccount(ctx, req.Account)
if err != nil {
logger.Error("UpdateAccount fail, err: %v", err)
return err