소스 검색

修复导出没有传链接字符串的问题

lcl 1 년 전
부모
커밋
00f2b565f3
1개의 변경된 파일9개의 추가작업 그리고 2개의 파일을 삭제
  1. 9 2
      AppStart/Helper/ExportService.cs

+ 9 - 2
AppStart/Helper/ExportService.cs

@@ -112,11 +112,18 @@ namespace MySystem
             string ConnectStr = "";
             if(content.Contains("\"ConnectStr\""))
             {
-                ConnectStr = GetConnectStr(jsonObj["ConnectStr"].ToString());
+                if(!string.IsNullOrEmpty(jsonObj["ConnectStr"].ToString()))
+                {
+                    ConnectStr = GetConnectStr(jsonObj["ConnectStr"].ToString());
+                }
+                else
+                {
+                    ConnectStr = MysqlConn.readconnstr;
+                }
             }
             else
             {
-                ConnectStr = MysqlConn.connstr;
+                ConnectStr = MysqlConn.readconnstr;
             }
             bool SubSqlFlag = content.Contains("\"SubSqlString\"");