diff --git a/app/mix/service/apiservice.go b/app/mix/service/apiservice.go index 7dcba9d3..82bcddcc 100644 --- a/app/mix/service/apiservice.go +++ b/app/mix/service/apiservice.go @@ -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 }