From 8530cd422ade3f35b8fd23bf1afda8b4d105f558 Mon Sep 17 00:00:00 2001 From: milimoe Date: Tue, 6 Jan 2026 02:04:03 +0800 Subject: [PATCH] =?UTF-8?q?=E9=95=BF=E5=BA=A6=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- MilimoeWebAPI/Controllers/APIController.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/MilimoeWebAPI/Controllers/APIController.cs b/MilimoeWebAPI/Controllers/APIController.cs index 11f91d3..9069649 100644 --- a/MilimoeWebAPI/Controllers/APIController.cs +++ b/MilimoeWebAPI/Controllers/APIController.cs @@ -21,6 +21,7 @@ namespace Milimoe.FunGame.WebAPI.Controllers int year = dto.Year; int month = dto.Month; string content = dto.Content; + if (content.Length > 40) content = content[..40]; string result = ""; if (year == 0) year = DateTime.Today.Year; if (month == 0) month = DateTime.Today.Month; @@ -75,6 +76,7 @@ namespace Milimoe.FunGame.WebAPI.Controllers return result; } + [AllowAnonymous] [HttpGet("sclist")] public string SCList(long id, long group, int year = 0, int month = 0, bool reverse = false) {