|
@@ -9,28 +9,19 @@
|
|
|
// | Author: liu21st <liu21st@gmail.com>
|
|
|
// +----------------------------------------------------------------------
|
|
|
// 线上配置 ip 10.46.2.149 端口 3306 用户名 pacs 密码 Zskk@2019~!@# 数据库名 pacsonline
|
|
|
-$xml = ROOT_PATH.'/public/data.xml';
|
|
|
-$xml_object = simplexml_load_file($xml);
|
|
|
-$xml_json = json_encode($xml_object);//转换为json数据
|
|
|
-$xml_array = json_decode($xml_json,true);//转换成数组
|
|
|
-$hostname = $xml_array['hostname'];
|
|
|
-$database = $xml_array['database'];
|
|
|
-$username = $xml_array['username'];
|
|
|
-$password = $xml_array['password'];
|
|
|
-$hostport = $xml_array['hostport'];
|
|
|
return [
|
|
|
// 数据库类型
|
|
|
'type' => 'think\oracle\W7Connection',
|
|
|
// 服务器地址
|
|
|
- 'hostname' => $hostname,
|
|
|
+ 'hostname' => '192.168.7.11',
|
|
|
// 数据库名
|
|
|
- 'database' => $database,
|
|
|
+ 'database' => 'PACSONLINE_PRO',
|
|
|
// 用户名
|
|
|
- 'username' => $username,
|
|
|
+ 'username' => 'PACS',
|
|
|
// 密码
|
|
|
- 'password' => $password,
|
|
|
+ 'password' => 'Pacs@1234',
|
|
|
// 端口
|
|
|
- 'hostport' => $hostport,
|
|
|
+ 'hostport' => '5236',
|
|
|
// 连接dsn
|
|
|
'dsn' => '',
|
|
|
// 数据库连接参数
|
|
@@ -73,28 +64,29 @@ return [
|
|
|
// 数据库类型
|
|
|
'type' => '\think\oracle\W7Connection',
|
|
|
// 服务器地址
|
|
|
- 'hostname' => $hostname,
|
|
|
+ 'hostname' => '192.168.7.11',
|
|
|
// 数据库名
|
|
|
- 'database' => $database,
|
|
|
+ 'database' => 'PACSONLINE_PRO',
|
|
|
// 用户名
|
|
|
- 'username' => $username,
|
|
|
+ 'username' => 'PACS',
|
|
|
// 密码
|
|
|
- 'password' => $password,
|
|
|
+ 'password' => 'Pacs@1234',
|
|
|
// 端口
|
|
|
- 'hostport' => $hostport,
|
|
|
+ 'hostport' => '5236',
|
|
|
],
|
|
|
'db_config_public' => [
|
|
|
// 数据库类型
|
|
|
'type' => '\think\oracle\W7Connection',
|
|
|
- 'hostname' => $hostname,
|
|
|
+ // 服务器地址
|
|
|
+ 'hostname' => '192.168.7.11',
|
|
|
// 数据库名
|
|
|
- 'database' => $database,
|
|
|
+ 'database' => 'PACSONLINE_PRO',
|
|
|
// 用户名
|
|
|
- 'username' => $username,
|
|
|
+ 'username' => 'PACS',
|
|
|
// 密码
|
|
|
- 'password' => $password,
|
|
|
+ 'password' => 'Pacs@1234',
|
|
|
// 端口
|
|
|
- 'hostport' => $hostport,
|
|
|
+ 'hostport' => '5236',
|
|
|
],
|
|
|
];
|
|
|
|