mirror of
https://github.com/oshima-studios/OshimaGameModule.git
synced 2025-04-22 20:09:35 +08:00
UID 没传
This commit is contained in:
parent
ee03383008
commit
8a665afd6b
@ -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();
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user