config_and.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. {
  11. function _InitTester()
  12. {
  13. $this->testerArr = array(
  14. "gwang", // 王刚
  15. "8796-any", // 王倩倩
  16. "wanggangzero.cn", // 王刚
  17. );
  18. }
  19. function _InitBaneder()
  20. {
  21. $this->banedArr = array(
  22. "251984775-baidu", // 王刚
  23. );
  24. }
  25. /**
  26. * 外网paydb
  27. */
  28. protected function _InitOuterNetPaydb()
  29. {
  30. $this->paydb->host = '10.66.108.49';
  31. $this->paydb->host = '10.66.172.19';
  32. $this->paydb->port = '3306';
  33. $this->paydb->name = 'dhdpay';
  34. $this->paydb->user = 'root';
  35. $this->paydb->password = 'wanggang1985';
  36. }
  37. /**
  38. * 外网nosql
  39. */
  40. protected function _InitOuterNetNosql()
  41. {
  42. $this->nosql->host = "10.66.143.110"; # host/ip
  43. $this->nosql->port = 6379; # 端口
  44. $this->nosql->pwd = 'crs-6jcljj4g:ylsj2018'; # 密钥
  45. }
  46. }
  47. return new config_and;