fix: access-result 提交接口 url 改为必填

This commit is contained in:
mediabot-pt
2026-07-01 09:06:41 +08:00
parent 02f8441892
commit 138559b3dc

View File

@@ -45,6 +45,9 @@ public class AccessResultController {
if (content == null || content.isBlank()) { if (content == null || content.isBlank()) {
return ApiResponse.error(400, "content is required"); return ApiResponse.error(400, "content is required");
} }
if (url == null || url.isBlank()) {
return ApiResponse.error(400, "url is required");
}
String clientId = (String) request.getAttribute("clientId"); String clientId = (String) request.getAttribute("clientId");
Long submitterId = (Long) request.getAttribute("accountId"); Long submitterId = (Long) request.getAttribute("accountId");