config_and.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?php
  2. namespace loyalsoft;
  3. /**
  4. * Description of config
  5. * 尝试用这种写法来定义服务器配置
  6. * @author gwang email:mail@wanggangzero.cn
  7. * @copyright © 2015-2-3, SJZ LoyalSoft Corporation & gwang. All rights reserved.
  8. */
  9. class config_and 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 _InitOuterNetPaydb() {
  26. $this->paydb->host = '172.17.16.5';
  27. $this->paydb->port = '3306';
  28. $this->paydb->name = 'ylsj2019_pay';
  29. $this->paydb->user = 'ylsjMTY0LjkyLjE5NC4x';
  30. $this->paydb->password = 'wanggang1985';
  31. }
  32. /**
  33. * 外网nosql
  34. */
  35. protected function _InitOuterNetNosql() {
  36. $this->nosql->host = "172.17.16.5"; # host/ip
  37. $this->nosql->port = 6379; # 端口
  38. $this->nosql->pwd = 'wanggang1985'; # 密钥
  39. }
  40. /**
  41. * 外网MongoDB
  42. */
  43. protected function _InitOuterMongoDB() {
  44. $this->mongodb = "mongodb://ylsjMTY0LjkyLjE5NC4x:wanggang1985@172.17.16.5:23333/?authSource=ylsj2019";
  45. }
  46. }
  47. return new config_and();