|
|
@@ -132,7 +132,7 @@ public class AccountUtils {
|
|
|
* @param user
|
|
|
* @throws Exception
|
|
|
*/
|
|
|
- public static void addUser(Long spaceUU, UserView user) throws Exception {
|
|
|
+ public static UserView addUser(Long spaceUU, UserView user) throws Exception {
|
|
|
String saveUrl = AccountConfig.getUserSaveUrl();
|
|
|
if (!StringUtils.isEmpty(saveUrl)) {
|
|
|
JSONObject formData = JSON.parseObject(JSON.toJSONString(user));
|
|
|
@@ -145,9 +145,12 @@ public class AccountUtils {
|
|
|
ResultWrap result = JSON.parseObject(res.getContent(), ResultWrap.class);
|
|
|
if (!result.isSuccess()) {
|
|
|
throw new Exception(result.getErrMsg());
|
|
|
+ } else if (result.getContent() != null) {
|
|
|
+ return JSON.parseObject(result.getContent().toString(), UserView.class);
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ return null;
|
|
|
}
|
|
|
|
|
|
/**
|