diff --git a/OshimaWebAPI/Controllers/FunGameController.cs b/OshimaWebAPI/Controllers/FunGameController.cs index c4118c9..ba4208a 100644 --- a/OshimaWebAPI/Controllers/FunGameController.cs +++ b/OshimaWebAPI/Controllers/FunGameController.cs @@ -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(); diff --git a/OshimaWebAPI/Services/RainBOTService.cs b/OshimaWebAPI/Services/RainBOTService.cs index 418f8c8..914c6a5 100644 --- a/OshimaWebAPI/Services/RainBOTService.cs +++ b/OshimaWebAPI/Services/RainBOTService.cs @@ -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);