机器人和频道api,请求错误时,result应该为空

This commit is contained in:
heavyrian2012
2026-04-26 09:42:22 +08:00
parent 07b1de4ae3
commit c7f7ce949e
@@ -144,7 +144,7 @@ abstract public class Action {
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.send();
}