lgy 2 hete
szülő
commit
4fe3cb5e64

+ 2 - 2
zskk_new_manage/.env

@@ -7,10 +7,10 @@ debug = true
 trace = true
 
 [database]
- hostname = 152.136.139.62
+ hostname = 192 168.0.44:5236,192.168.0.5
  database = SYSDBA
  username = SYSDBA
- password = Zskk@2025
+ password = Yqwjw_202504
  hostport = 5236
 # hostname = 10.193.149.201
 # database = pacsonline_pro

+ 1 - 0
zskk_new_manage/application/index/controller/Index.php

@@ -15,6 +15,7 @@ class Index extends Frontend
 
     public function index()
     {
+        phpinfo();die;
         var_dump(1);die;
         return $this->view->fetch();
         import('phpexcel.PHPExcel', EXTEND_PATH);

+ 2 - 1
zskk_new_manage/thinkphp/library/think/db/Connection.php

@@ -287,7 +287,8 @@ abstract class Connection
             }
             try {
                 if (empty($config['dsn'])) {
-                    $config['dsn'] = $this->parseDsn($config);
+//                    $config['dsn'] = $this->parseDsn($config);
+                    $config['dsn'] = "dm:host=".$config['hostname'].";dbname=".$config['database'];
                 }
                 if ($config['debug']) {
                     $startTime = microtime(true);