From 92401f740f7f261d60085cd3e4b0f791d8eb6269 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=B1=B3?= Date: Sat, 22 Jun 2024 20:11:57 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=99get=5Fdefault=5Ffile=5Fpath=5Fname=5Ff?= =?UTF-8?q?ormat=E6=8E=A5=E5=8F=A3=E5=A2=9E=E5=8A=A0=E6=8B=86=E5=88=86?= =?UTF-8?q?=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Server/WebAppServices/Api/config.cs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Server/WebAppServices/Api/config.cs b/Server/WebAppServices/Api/config.cs index 75b910ce0..284f1b55d 100644 --- a/Server/WebAppServices/Api/config.cs +++ b/Server/WebAppServices/Api/config.cs @@ -166,7 +166,15 @@ public class get_default_file_path_name_format : ControllerBase [HttpGet(Name = "get_default_file_path_name_format")] public ActionResult Get(GetCommonParameters commonParameters) { - return Content(MessageBase.MssagePack(nameof(get_default_file_path_name_format), $"{Core.Config.Core_RunConfig._DefaultLiverFolderName}/{Core.Config.Core_RunConfig._DefaultDataFolderName}{(string.IsNullOrEmpty(Core.Config.Core_RunConfig._DefaultDataFolderName)?"":"/")}{Core.Config.Core_RunConfig._DefaultFileName}", $"录制储存路径中的子路径和格式"), "application/json"); + string Full = $"{Core.Config.Core_RunConfig._DefaultLiverFolderName}/{Core.Config.Core_RunConfig._DefaultDataFolderName}{(string.IsNullOrEmpty(Core.Config.Core_RunConfig._DefaultDataFolderName) ? "" : "/")}{Core.Config.Core_RunConfig._DefaultFileName}"; + (string Full, string default_liver_folder_name, string default_data_folder_name, string default_file_name) data = new() + { + Full = Full, + default_liver_folder_name = Core.Config.Core_RunConfig._DefaultLiverFolderName, + default_data_folder_name = Core.Config.Core_RunConfig._DefaultDataFolderName, + default_file_name = Core.Config.Core_RunConfig._DefaultFileName + }; + return Content(MessageBase.MssagePack(nameof(get_default_file_path_name_format), data, $"录制储存路径中的子路径和格式"), "application/json"); } }