config_ios.php 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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_ios extends config
  10. {
  11. function _InitTester()
  12. {
  13. $this->testerArr = array();
  14. }
  15. function _InitBaneder()
  16. {
  17. $this->banedArr = array();
  18. }
  19. /**
  20. * 外网paydb
  21. */
  22. protected function _InitOuterNetPaydb()
  23. {
  24. $this->paydb->host = '127.0.0.1';
  25. $this->paydb->port = '3306';
  26. $this->paydb->name = 'ylsj2019_pay';
  27. $this->paydb->user = 'root';
  28. $this->paydb->password = 'wanggang1985';
  29. }
  30. /**
  31. * 外网nosql
  32. */
  33. protected function _InitOuterNetNosql()
  34. {
  35. $this->nosql->host = "127.0.0.1"; # host/ip
  36. $this->nosql->port = 6379; # 端口
  37. $this->nosql->pwd = 'wanggang1985'; # 密钥
  38. }
  39. }
  40. return new config_ios();