|
@@ -0,0 +1,58 @@
|
|
|
+<?php
|
|
|
+
|
|
|
+namespace loyalsoft;
|
|
|
+
|
|
|
+/**
|
|
|
+ * 本机/局域网测试
|
|
|
+ * 尝试用这种写法来定义服务器配置
|
|
|
+ * @author gwang email:mail@wanggangzero.cn
|
|
|
+ * @copyright © 2015-2-3, SJZ LoyalSoft Corporation & gwang. All rights reserved.
|
|
|
+ */
|
|
|
+class config_tap extends config {
|
|
|
+
|
|
|
+ function _InitTester() {
|
|
|
+ $this->testerArr = array(
|
|
|
+ "gwang", // 王刚
|
|
|
+ "8796-any", // 王倩倩
|
|
|
+ "wanggangzero.cn", // 王刚
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ function _InitBaneder() {
|
|
|
+ $this->banedArr = array(
|
|
|
+ "251984775-baidu", // 王刚
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 初始化paydb
|
|
|
+ */
|
|
|
+ protected function _InitPaydb() {
|
|
|
+ $this->paydb->host = '10.88.16.14';
|
|
|
+ $this->paydb->port = '3306';
|
|
|
+ $this->paydb->name = 'jzhj2024_pay_dev';
|
|
|
+ $this->paydb->user = 'ylsjMTY0LjkyLjE5NC4x';
|
|
|
+ $this->paydb->password = 'wanggang1985';
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * nosql
|
|
|
+ */
|
|
|
+ protected function _InitNosql() {
|
|
|
+ $this->nosql->host = "10.88.20.16"; # host/ip
|
|
|
+ $this->nosql->port = 6379; # 端口
|
|
|
+ $this->nosql->pwd = 'wanggang1985'; # 密钥
|
|
|
+ $this->nosql->db = 9; # db索引
|
|
|
+ }
|
|
|
+
|
|
|
+ /**
|
|
|
+ * MongoDB
|
|
|
+ */
|
|
|
+ protected function _InitMongoDB() {
|
|
|
+ $this->mongo->db = 'jzhj2024_dev';
|
|
|
+ $this->mongo->conn = "mongodb://ylsjMTY0LjkyLjE5NC4x:wanggang1985@10.88.0.14:23333/?authSource=ylsj2019";
|
|
|
+ $this->mongo->conn = "mongodb://mongouser:wanggang1985@10.88.24.17:27017,10.88.24.5:27017/test?replicaSet=cmgo-bw110ojx_0&authSource=admin";
|
|
|
+ }
|
|
|
+}
|
|
|
+
|
|
|
+return new config_tap();
|