作者 yangfu

创建共创用户修改

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