作者 yangfu

创建共创用户修改

... ... @@ -172,7 +172,7 @@ func (userService *UserService) CreateCooperator(createCooperatorCommand *comman
"transactionContext": transactionContext,
})
if user, err = createUserService.CreateUser(nil, newUser, createCooperatorCommand.Password); err != nil {
return nil, err
return nil, application.ThrowError(application.TRANSACTION_ERROR, err.Error())
}
userDto := &dto.UserDto{}
if err := userDto.LoadDto(user, nil); err != nil {
... ...