105040 Update 增加调试标识判断

This commit is contained in:
lihanbo 2025-01-23 09:04:38 +08:00
parent 98df216fae
commit 2d4c108da2
1 changed files with 5 additions and 2 deletions

View File

@ -11,10 +11,13 @@ namespace Sinvo.EplanHpD.Plugin.Service
public class DBHelper
{
private static string _dbUser = "sa";
#if DEBUG
private static string _dbServer = "192.168.91.130";
private static string _dbPassword = "Sa1234";
#else
private static string _dbPassword = "SA@9512";
//private static string _dbPassword = "Sa1234";
private static string _dbServer = "192.168.1.223";
//private static string _dbServer = "192.168.91.130";
#endif
private static string _dbName = "MotorData";
private static string _connectionString => $"Server={_dbServer};Database={_dbName};User Id={_dbUser};Password={_dbPassword};";