|
|
@@ -243,7 +243,7 @@ public class InviteRecordServiceImpl implements InviteRecordService {
|
|
|
JSONObject object = JSON.parseObject(result);
|
|
|
String errorMsg = object.getString("error");
|
|
|
if (!StringUtils.isEmpty(errorMsg)) {
|
|
|
- map.put("error", errorMsg);
|
|
|
+ throw new IllegalOperatorException(errorMsg);
|
|
|
} else {
|
|
|
map.put("success", object.getString("success"));
|
|
|
}
|
|
|
@@ -364,7 +364,7 @@ public class InviteRecordServiceImpl implements InviteRecordService {
|
|
|
if (record.getId() != null) {
|
|
|
map.put("success", "邀请已发送");
|
|
|
} else {
|
|
|
- map.put("error", "邀请发送失败");
|
|
|
+ throw new IllegalOperatorException("邀请发送失败");
|
|
|
}
|
|
|
}
|
|
|
// 同步一个数据到账户中心(不是必须,不判断状态)
|