diff --git a/OshimaServers/OshimaServer.cs b/OshimaServers/OshimaServer.cs index e87414f..c970269 100644 --- a/OshimaServers/OshimaServer.cs +++ b/OshimaServers/OshimaServer.cs @@ -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); } } diff --git a/OshimaWebAPI/OshimaWebAPI.cs b/OshimaWebAPI/OshimaWebAPI.cs index 40ee78d..7436ffe 100644 --- a/OshimaWebAPI/OshimaWebAPI.cs +++ b/OshimaWebAPI/OshimaWebAPI.cs @@ -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(); @@ -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(); //Controller.WriteLine(Controller.JSON.GetObject(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)