|
@@ -87,7 +87,13 @@ public class CustomFieldController {
|
|
try {
|
|
try {
|
|
id = (Integer) business.updateMessage(updateCustomFieldDTO);
|
|
id = (Integer) business.updateMessage(updateCustomFieldDTO);
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
- return Response.error(e.getMessage());
|
|
|
|
|
|
+ if (e instanceof XiaoShiException) {
|
|
|
|
+ return Response.error(e.getMessage());
|
|
|
|
+ } else if (e instanceof UnLoginException) {
|
|
|
|
+ return Response.unLogin(e.getMessage());
|
|
|
|
+ } else if (e instanceof ConditionException) {
|
|
|
|
+ return Response.conditionError(e.getMessage());
|
|
|
|
+ }
|
|
}
|
|
}
|
|
return Response.success(id);
|
|
return Response.success(id);
|
|
} else {
|
|
} else {
|