by Robin at 20240512
This commit is contained in:
parent
06227bd983
commit
5cf69a9244
|
@ -364,7 +364,7 @@ func (s *Service) ApiUpdateAccount(ctx *gin.Context, req *accountproto.ApiUpdate
|
|||
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 {
|
||||
logger.Error("OpUpdateStreamerAcctName fail, req: %v, err: %v", util.ToJson(req), err)
|
||||
ec = errcode.ErrCodeAccountSrvFail
|
||||
|
|
|
@ -810,7 +810,7 @@ func (s *Service) OpUpdateAccount(ctx *gin.Context, req *accountproto.OpUpdateRe
|
|||
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 {
|
||||
logger.Error("OpUpdateStreamerAcctName fail, req: %v, err: %v", util.ToJson(req), err)
|
||||
ec = errcode.ErrCodeAccountSrvFail
|
||||
|
|
Loading…
Reference in New Issue