修改方法签名

This commit is contained in:
milimoe 2026-04-08 00:50:13 +08:00
parent 8438dbf495
commit 5aa1701d85
Signed by: milimoe
GPG Key ID: 9554D37E4B8991D0
2 changed files with 8 additions and 8 deletions

View File

@ -19,13 +19,13 @@ namespace Oshima.FunGame.OshimaServers
public override string Author => OshimaGameModuleConstant.Author;
public override async void ProcessInput(string input)
public override async void ProcessInput(string order, string[] args)
{
// OSM指令
if (input.StartsWith(".osm", StringComparison.CurrentCultureIgnoreCase))
if (order.StartsWith(".osm", StringComparison.CurrentCultureIgnoreCase))
{
//MasterCommand.Execute(read, GeneralSettings.Master, false, GeneralSettings.Master, false);
Controller.WriteLine("试图使用 .osm 指令:" + input);
Controller.WriteLine("试图使用 .osm 指令:" + order);
}
}

View File

@ -35,7 +35,7 @@ namespace Oshima.FunGame.WebAPI
private IServiceScopeFactory? _serviceScopeFactory = null;
public override void ProcessInput(string input)
public override void ProcessInput(string order, string[] args)
{
// RainBOT 测试
using (IServiceScope? scope = _serviceScopeFactory?.CreateScope())
@ -47,7 +47,7 @@ namespace Oshima.FunGame.WebAPI
try
{
if (input.Trim() != "")
if (order.Trim() != "")
{
// 获取 RainBOTService 实例
RainBOTService bot = serviceProvider.GetRequiredService<RainBOTService>();
@ -57,7 +57,7 @@ namespace Oshima.FunGame.WebAPI
GroupOpenId = "1",
AuthorOpenId = "1",
OpenId = "1",
Detail = input,
Detail = order,
Id = "1",
Timestamp = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")
};
@ -71,7 +71,7 @@ namespace Oshima.FunGame.WebAPI
}
}
if (input == "test")
if (order == "test")
{
//FunGameController funGameController = serviceProvider.GetRequiredService<FunGameController>();
//Controller.WriteLine(Controller.JSON.GetObject<string>(funGameController.ShowDailyStore(1)) ?? "test");
@ -84,7 +84,7 @@ namespace Oshima.FunGame.WebAPI
}
}
if (input == "testuser")
if (order == "testuser")
{
using SQLHelper? sql = Controller.GetSQLHelper();
if (sql != null)