Merge pull request 'by Robin at 20240512' (#427) from feat-IRONFANS-114-Robin into main
Reviewed-on: http://121.41.31.146:3000/wishpal_ironfan/service/pulls/427
This commit is contained in:
commit
5ffd2d6085
|
@ -364,7 +364,7 @@ func (s *Service) ApiUpdateAccount(ctx *gin.Context, req *accountproto.ApiUpdate
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if oldAccount.GetRole() == consts.Streamer {
|
if oldAccount.GetRole() == consts.Streamer && req.Account.Name != nil {
|
||||||
if err := _DefaultAccount.OpUpdateStreamerAcctName(ctx, util.DerefInt64(req.Account.Mid), util.DerefString(req.Account.Name)); err != nil {
|
if err := _DefaultAccount.OpUpdateStreamerAcctName(ctx, util.DerefInt64(req.Account.Mid), util.DerefString(req.Account.Name)); err != nil {
|
||||||
logger.Error("OpUpdateStreamerAcctName fail, req: %v, err: %v", util.ToJson(req), err)
|
logger.Error("OpUpdateStreamerAcctName fail, req: %v, err: %v", util.ToJson(req), err)
|
||||||
ec = errcode.ErrCodeAccountSrvFail
|
ec = errcode.ErrCodeAccountSrvFail
|
||||||
|
|
|
@ -810,7 +810,7 @@ func (s *Service) OpUpdateAccount(ctx *gin.Context, req *accountproto.OpUpdateRe
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
if oldAccount.GetRole() == consts.Streamer {
|
if oldAccount.GetRole() == consts.Streamer && req.Account.Name != nil {
|
||||||
if err := _DefaultAccount.OpUpdateStreamerAcctName(ctx, util.DerefInt64(req.Account.Mid), util.DerefString(req.Account.Name)); err != nil {
|
if err := _DefaultAccount.OpUpdateStreamerAcctName(ctx, util.DerefInt64(req.Account.Mid), util.DerefString(req.Account.Name)); err != nil {
|
||||||
logger.Error("OpUpdateStreamerAcctName fail, req: %v, err: %v", util.ToJson(req), err)
|
logger.Error("OpUpdateStreamerAcctName fail, req: %v, err: %v", util.ToJson(req), err)
|
||||||
ec = errcode.ErrCodeAccountSrvFail
|
ec = errcode.ErrCodeAccountSrvFail
|
||||||
|
|
Loading…
Reference in New Issue