config_dev.php 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  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_dev 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.0.14';
  27. $this->paydb->port = '3306';
  28. $this->paydb->name = 'jzhj2023_pay_dev';
  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.0.14"; # host/ip
  37. $this->nosql->port = 6379; # 端口
  38. $this->nosql->pwd = 'wanggang1985'; # 密钥
  39. $this->nosql->db = 2; # db索引
  40. }
  41. /**
  42. * MongoDB
  43. */
  44. protected function _InitMongoDB() {
  45. $this->mongo->db = 'ylsj2019_dev';
  46. $this->mongo->conn = "mongodb://ylsjMTY0LjkyLjE5NC4x:wanggang1985@10.88.0.14:23333/?authSource=ylsj2019";
  47. }
  48. }
  49. return new config_dev();