Bladeren bron

Update 调整配置连接本地数据库

YueYunyun 1 jaar geleden
bovenliggende
commit
3769236d4f

+ 1 - 1
SourceCode/WeApp.Application/TrainingCamp/CampApplicationService.cs

@@ -152,8 +152,8 @@ namespace WeApp.TrainingCamp
                         });
                     }
                 }
-                await CreateEntity(input);
             }
+            await CreateEntity(input);
         }
 
         [AbpAuthorize(PermissionNames.PagesTrainMgCampMgUpdate)]

+ 2 - 1
SourceCode/WeApp.Core/CommonManager/MqttClient/WeAppMsgClientManager.cs

@@ -94,7 +94,8 @@ namespace WeApp.CommonManager.MqttClient
                 AppId = ClientId,
                 Name = "智慧演练系统",
                 SecretKey = "WePlatformWeApp",
-                ServerIp = "shvber.com",
+                //ServerIp = "shvber.com",
+                ServerIp = "localhost",
                 ServerPort = 1885,
             };
 #else

+ 3 - 2
SourceCode/WeApp.Core/IwbCoreModule.cs

@@ -1,4 +1,5 @@
 using System.Reflection;
+using System.Threading;
 using System.Threading.Tasks;
 using Abp.EntityFramework.Repositories;
 using Abp.Modules;
@@ -60,8 +61,8 @@ namespace WeApp
         private void MsgClientRegister()
         {
             var MsgClient = IocManager.Resolve<WeAppMsgClientManager>();
-             MsgClient.SendMessage(IwbConsts.ClientName, $"客户端{MsgClient.ClientId}已注册");
-             MsgClient.SendMessage("WeEngine", $"客户端{MsgClient.ClientId}已注册");
+            MsgClient.SendMessage(IwbConsts.ClientName, $"客户端{MsgClient.ClientId}已注册");
+            MsgClient.SendMessage("WeEngine", $"客户端{MsgClient.ClientId}已注册");
         }
     }
 }

+ 1 - 1
SourceCode/WeApp.Web/Web.config

@@ -35,7 +35,7 @@
 		<!-- <add key="aspnet:AllowAsyncDuringSyncStages" value="true" /> -->
 	</appSettings>
 	<connectionStrings>
-		<add name="Default" connectionString="Server=47.112.30.247; Database=We_AppDb_V2.2_Dev; User Id=sa;Password=Iwb2017" providerName="System.Data.SqlClient" />
+		<add name="Default" connectionString="Server=.\Y; Database=We_AppDb_V2.2_Dev; User Id=sa;Password=123456" providerName="System.Data.SqlClient" />
 		<!--<add name="Default" connectionString="Server=192.168.0.101:49173; Database=We_AppDb_V2.1; User Id=sa;Password=Iwb2017" providerName="System.Data.SqlClient" />-->
 	</connectionStrings>
 	<!--