Merge pull request 'by Robin at 20240715' (#617) from BUG-20240715 into test

Reviewed-on: http://121.41.31.146:3000/wishpal_ironfan/service/pulls/617
This commit is contained in:
chenhao 2024-07-15 19:27:02 +08:00
commit e0bcac5804
1 changed files with 6 additions and 0 deletions

View File

@ -133,6 +133,9 @@ func (s *Service) ApiLoginByPswd(ctx *gin.Context, req *loginproto.ApiLoginByPsw
accountVO = &accountproto.ApiListVO{}
accountVO.CopyAccount(account)
wallet, _ := _DefaultVas.CheckWalletExist(ctx, nil, util.DerefInt64(accountVO.Mid))
accountVO.CopyWallet(wallet)
return
}
@ -208,6 +211,9 @@ func (s *Service) ApiLoginByVeriCode(ctx *gin.Context, req *loginproto.ApiLoginB
isEnabled = util.DerefInt64(login.IsEnabled)
accountVO = &accountproto.ApiListVO{}
accountVO.CopyAccount(account)
wallet, _ := _DefaultVas.CheckWalletExist(ctx, nil, util.DerefInt64(accountVO.Mid))
accountVO.CopyWallet(wallet)
return
}