You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
68 lines
2.5 KiB
68 lines
2.5 KiB
<?php
|
|
// +----------------------------------------------------------------------
|
|
// | ThinkPHP [ WE CAN DO IT JUST THINK ]
|
|
// +----------------------------------------------------------------------
|
|
// | Copyright (c) 2006~2018 http://thinkphp.cn All rights reserved.
|
|
// +----------------------------------------------------------------------
|
|
// | Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
|
|
// +----------------------------------------------------------------------
|
|
// | Author: liu21st <liu21st@gmail.com>
|
|
// +----------------------------------------------------------------------
|
|
|
|
$dm_db = [
|
|
'host' => 'localhost',
|
|
'database' => 'CXK',
|
|
'username' => 'SYSDBA',
|
|
'password' => 'SYSDBA',
|
|
'port' => '5236',
|
|
'charset' => 'utf8',
|
|
];
|
|
|
|
return [
|
|
// +----------------------------------------------------------------------
|
|
// | 数据库配置
|
|
// +----------------------------------------------------------------------
|
|
|
|
'database' => [
|
|
# 达梦数据库
|
|
'dm' => [
|
|
// 服务器地址
|
|
'hostname' => $dm_db['host'],
|
|
// 数据库名
|
|
'database' => $dm_db['database'],
|
|
// 用户名
|
|
'username' => $dm_db['username'],
|
|
// 密码
|
|
'password' => $dm_db['password'],
|
|
// 端口
|
|
'hostport' => $dm_db['port'],
|
|
// 数据库编码默认采用utf8
|
|
'charset' => $dm_db['charset'],
|
|
]
|
|
],
|
|
|
|
// +----------------------------------------------------------------------
|
|
// | 自定义配置
|
|
// +----------------------------------------------------------------------
|
|
'api_config' => [
|
|
# 调用网址地址
|
|
'host' => '192.168.66.13',
|
|
# 端口号
|
|
'port' => '443',
|
|
# 请求key
|
|
'cid' => '29940726',
|
|
# 请求密钥
|
|
'cskey' => 'SkTCnQdFbNW4Z2suNj8P',
|
|
# 请求智慧景区接口地址
|
|
'host_url' => 'https://192.168.66.13:443/artemis',
|
|
# 脚本数据推送创建数据地址
|
|
//'host_path' => 'http://btgym.xingtongworld.com/index.php?s=',
|
|
// 'host_path' => 'http://192.168.66.16/index.php?s=',
|
|
'host_path' => 'http://www.stadium.com/index.php?s=',
|
|
# 允许跨域 请求的IP地址
|
|
'access_control_allow_origin' => [
|
|
'http://192.168.66.220:8080',
|
|
'http://192.168.66.220:8081'
|
|
]
|
|
]
|
|
];
|
|
|