机器人和频道api,请求错误时,result应该为空
This commit is contained in:
@@ -144,7 +144,7 @@ abstract public class Action {
|
|||||||
errorCode = ErrorCode.ERROR_CODE_SUCCESS;
|
errorCode = ErrorCode.ERROR_CODE_SUCCESS;
|
||||||
}
|
}
|
||||||
|
|
||||||
RestResult result = RestResult.resultOf(errorCode, errorCode.getMsg(), RestResult.resultOf(errorCode));
|
RestResult result = RestResult.resultOf(errorCode, errorCode.getMsg(), null);
|
||||||
response.setContent(gson.toJson(result));
|
response.setContent(gson.toJson(result));
|
||||||
response.send();
|
response.send();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user