From bd2cb39b633c8ee2911586fdb657c6489797722b Mon Sep 17 00:00:00 2001 From: asesidaa <1061472754@qq.com> Date: Thu, 9 Nov 2023 02:46:24 +0800 Subject: [PATCH] Add stub for writewmusic --- MainServer/Controllers/Game/CardController.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/MainServer/Controllers/Game/CardController.cs b/MainServer/Controllers/Game/CardController.cs index 8e70574..d5184f1 100644 --- a/MainServer/Controllers/Game/CardController.cs +++ b/MainServer/Controllers/Game/CardController.cs @@ -72,7 +72,7 @@ public class CardController : BaseController await Mediator.Send(new WriteItemCommand(request.CardId, request.Data)), CardRequestType.WriteTitle => await Mediator.Send(new WriteTitleCommand(request.CardId, request.Data)), - CardRequestType.WriteMusicDetail => await Mediator.Send( + CardRequestType.WriteMusicDetail or CardRequestType.WriteWMusicDetail => await Mediator.Send( new WriteMusicDetailCommand(request.CardId, request.Data)), CardRequestType.WriteNavigator => await Mediator.Send( new WriteNavigatorCommand(request.CardId, request.Data)), @@ -103,6 +103,7 @@ public class CardController : BaseController result = await Mediator.Send(new CardReissueCommand(request.CardId)); break; default: + Logger.LogWarning("Unimplemented: {CardCommandType}, data is {Data}", cardCommandType, request.Data); throw new ArgumentOutOfRangeException(nameof(cardCommandType), cardCommandType, "Should not happen"); }