长度限制
This commit is contained in:
parent
a3aefa93a6
commit
8530cd422a
@ -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)
|
||||
{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user