config_tap.php 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?php
  2. namespace loyalsoft;
  3. /**
  4. * 本机/局域网测试
  5. * 尝试用这种写法来定义服务器配置
  6. * @author gwang email:mail@wanggangzero.cn
  7. * @copyright © 2015-2-3, SJZ LoyalSoft Corporation & gwang. All rights reserved.
  8. */
  9. class config_tap extends config {
  10. function _InitTester() {
  11. $this->testerArr = array(
  12. "gwang", // 王刚
  13. "8796-any", // 王倩倩
  14. "wanggangzero.cn", // 王刚
  15. );
  16. }
  17. function _InitBaneder() {
  18. $this->banedArr = array(
  19. "251984775-baidu", // 王刚
  20. );
  21. }
  22. /**
  23. * 初始化paydb
  24. */
  25. protected function _InitPaydb() {
  26. $this->paydb->host = '10.88.16.14';
  27. $this->paydb->port = '3306';
  28. $this->paydb->name = 'jzhj2024_pay_tap';
  29. $this->paydb->user = 'ylsjMTY0LjkyLjE5NC4x';
  30. $this->paydb->password = 'wanggang1985';
  31. }
  32. /**
  33. * nosql
  34. */
  35. protected function _InitNosql() {
  36. $this->nosql->host = "10.88.20.16"; # host/ip
  37. $this->nosql->port = 6379; # 端口
  38. $this->nosql->pwd = 'wanggang1985'; # 密钥
  39. $this->nosql->db = 11; # db索引
  40. }
  41. /**
  42. * MongoDB
  43. */
  44. protected function _InitMongoDB() {
  45. $this->mongo->db = 'jzhj2024_tap_t3';
  46. $this->mongo->conn = "mongodb://ylsjMTY0LjkyLjE5NC4x:wanggang1985@10.88.0.14:23333/?authSource=ylsj2019";
  47. $this->mongo->conn = "mongodb://mongouser:wanggang1985@10.88.24.17:27017,10.88.24.5:27017/test?replicaSet=cmgo-bw110ojx_0&authSource=admin";
  48. }
  49. }
  50. return new config_tap();