mirror of
https://github.com/oshima-studios/OshimaGameModule.git
synced 2026-04-20 13:35:03 +00:00
修改方法签名
This commit is contained in:
parent
8438dbf495
commit
5aa1701d85
@ -19,13 +19,13 @@ namespace Oshima.FunGame.OshimaServers
|
|||||||
|
|
||||||
public override string Author => OshimaGameModuleConstant.Author;
|
public override string Author => OshimaGameModuleConstant.Author;
|
||||||
|
|
||||||
public override async void ProcessInput(string input)
|
public override async void ProcessInput(string order, string[] args)
|
||||||
{
|
{
|
||||||
// OSM指令
|
// OSM指令
|
||||||
if (input.StartsWith(".osm", StringComparison.CurrentCultureIgnoreCase))
|
if (order.StartsWith(".osm", StringComparison.CurrentCultureIgnoreCase))
|
||||||
{
|
{
|
||||||
//MasterCommand.Execute(read, GeneralSettings.Master, false, GeneralSettings.Master, false);
|
//MasterCommand.Execute(read, GeneralSettings.Master, false, GeneralSettings.Master, false);
|
||||||
Controller.WriteLine("试图使用 .osm 指令:" + input);
|
Controller.WriteLine("试图使用 .osm 指令:" + order);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -35,7 +35,7 @@ namespace Oshima.FunGame.WebAPI
|
|||||||
|
|
||||||
private IServiceScopeFactory? _serviceScopeFactory = null;
|
private IServiceScopeFactory? _serviceScopeFactory = null;
|
||||||
|
|
||||||
public override void ProcessInput(string input)
|
public override void ProcessInput(string order, string[] args)
|
||||||
{
|
{
|
||||||
// RainBOT 测试
|
// RainBOT 测试
|
||||||
using (IServiceScope? scope = _serviceScopeFactory?.CreateScope())
|
using (IServiceScope? scope = _serviceScopeFactory?.CreateScope())
|
||||||
@ -47,7 +47,7 @@ namespace Oshima.FunGame.WebAPI
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
if (input.Trim() != "")
|
if (order.Trim() != "")
|
||||||
{
|
{
|
||||||
// 获取 RainBOTService 实例
|
// 获取 RainBOTService 实例
|
||||||
RainBOTService bot = serviceProvider.GetRequiredService<RainBOTService>();
|
RainBOTService bot = serviceProvider.GetRequiredService<RainBOTService>();
|
||||||
@ -57,7 +57,7 @@ namespace Oshima.FunGame.WebAPI
|
|||||||
GroupOpenId = "1",
|
GroupOpenId = "1",
|
||||||
AuthorOpenId = "1",
|
AuthorOpenId = "1",
|
||||||
OpenId = "1",
|
OpenId = "1",
|
||||||
Detail = input,
|
Detail = order,
|
||||||
Id = "1",
|
Id = "1",
|
||||||
Timestamp = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")
|
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>();
|
//FunGameController funGameController = serviceProvider.GetRequiredService<FunGameController>();
|
||||||
//Controller.WriteLine(Controller.JSON.GetObject<string>(funGameController.ShowDailyStore(1)) ?? "test");
|
//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();
|
using SQLHelper? sql = Controller.GetSQLHelper();
|
||||||
if (sql != null)
|
if (sql != null)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user