config_ios.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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. * 外网MongoDB
  36. */
  37. protected function _InitOuterMongoDB() {
  38. $this->mongodb = "mongodb://gwang:wanggang1985@localhost:27017/?authSource=admin";
  39. }
  40. }
  41. return new config_ios();