Commit 886b7199 authored by Maodashu's avatar Maodashu

修改环境变量相关bug

parent 9291d205
...@@ -132,7 +132,8 @@ namespace OTWebSocket.API ...@@ -132,7 +132,8 @@ namespace OTWebSocket.API
var path = Configuration.GetSection("Swagger:VirtualPath").Value; var path = Configuration.GetSection("Swagger:VirtualPath").Value;
string scheme = "https"; string scheme = "https";
if (Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT").Equals("Development")) var env = Environment.GetEnvironmentVariable("ASPNETCORE_ENVIRONMENT");
if (!string.IsNullOrEmpty(env) && env.Equals("Development"))
{ {
scheme = "http";//本地测试使用http协议 scheme = "http";//本地测试使用http协议
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment