config_ios.php 1.1 KB

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