UID 没传

This commit is contained in:
milimoe 2025-02-11 00:52:43 +08:00
parent ee03383008
commit 8a665afd6b
Signed by: milimoe
GPG Key ID: 05D280912DA6C69E
2 changed files with 3 additions and 3 deletions

View File

@ -5113,10 +5113,10 @@ namespace Oshima.FunGame.WebAPI.Controllers
}
[HttpPost("exploreregion")]
public string ExploreRegion([FromQuery] long? uid = null, [FromQuery] int? id = null)
public string ExploreRegion([FromQuery] long? uid = null, [FromQuery] long? id = null)
{
long userid = uid ?? Convert.ToInt64("10" + Verification.CreateVerifyCode(VerifyCodeType.NumberVerifyCode, 11));
int regionid = id ?? 0;
long regionid = id ?? 0;
PluginConfig pc = new("saved", userid.ToString());
pc.LoadConfig();

View File

@ -1998,7 +1998,7 @@ namespace Oshima.FunGame.WebAPI.Services
string msg = "";
if (int.TryParse(detail, out int cid))
{
msg = Controller.ExploreRegion(cid);
msg = Controller.ExploreRegion(uid, cid);
if (msg.Trim() != "")
{
await SendAsync(e, "探索", msg);