瀏覽代碼

Merge branch 'master' of http://git.fwt.com/CallCenter/callcenter

Dun.Jason 2 年之前
父節點
當前提交
50ce0dc552
共有 2 個文件被更改,包括 8 次插入1 次删除
  1. 7 0
      src/CallCenter.Api/Controllers/TestSdkController.cs
  2. 1 1
      src/CallCenter.Api/StartupExtensions.cs

+ 7 - 0
src/CallCenter.Api/Controllers/TestSdkController.cs

@@ -37,6 +37,13 @@ namespace CallCenter.Api.Controllers
             _options = options;
         }
 
+        [HttpGet("testconfig")]
+        public string Test([FromServices] IConfiguration configuration)
+        {
+            var a = configuration.GetSection("WorkTimeSettings:MorningBegin").Get<string>();
+            return a;
+        }
+
         #region  查询(Query)
 
         /// <summary>

+ 1 - 1
src/CallCenter.Api/StartupExtensions.cs

@@ -31,7 +31,7 @@ internal static class StartupExtensions
         services.AddHttpContextAccessor();
 
 #if DEBUG
-        builder.WebHost.UseUrls("http://192.168.100.36:50001", "http://localhost:50001");
+        builder.WebHost.UseUrls("http://192.168.100.62:50001", "http://localhost:50001");
 #endif
 
         services.Configure<DeviceConfigs>(d => configuration.GetSection("DeviceConfigs").Bind(d));