config_dev_wg.php 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. <?php
  2. namespace loyalsoft;
  3. /**
  4. * 本机/局域网测试
  5. * 尝试用这种写法来定义服务器配置
  6. * @author gwang email:mail@wanggangzero.cn
  7. * @copyright © 2015-2-3, SJZ LoyalSoft Corporation & gwang. All rights reserved.
  8. */
  9. class config_dev_wg extends config {
  10. function _InitTester() {
  11. $this->testerArr = array(
  12. "gwang", // 王刚
  13. "D51D63CA040982E406BDE9898AD757AE", // 王倩倩
  14. "wanggangzero.cn", // 王刚
  15. );
  16. }
  17. function _InitBaneder() {
  18. $this->banedArr = array(
  19. "251984775-baidu", // 王刚
  20. );
  21. }
  22. /**
  23. * 初始化paydb
  24. */
  25. protected function _InitPaydb() {
  26. $this->paydb->host = '127.0.0.1';
  27. $this->paydb->port = '3306';
  28. $this->paydb->name = 'ylsj2019_pay';
  29. $this->paydb->user = 'gwang';
  30. $this->paydb->password = 'wanggang1985';
  31. //
  32. // $this->paydb->host = '127.0.0.1';
  33. // $this->paydb->port = '3306';
  34. // $this->paydb->name = 'chongwu';
  35. // $this->paydb->user = 'root';
  36. // $this->paydb->password = 'root';
  37. // $this->paydb->host = '192.168.10.16';
  38. // $this->paydb->port = '3306';
  39. // $this->paydb->name = 'ylsj2019_pay';
  40. // $this->paydb->user = 'gwang';
  41. // $this->paydb->password = 'wanggang1985';
  42. }
  43. /**
  44. * nosql
  45. */
  46. protected function _InitNosql() {
  47. $this->nosql->host = "127.0.0.1"; # host/ip
  48. $this->nosql->port = 6379; # 端口
  49. $this->nosql->pwd = 'wanggang1985'; # 密钥
  50. $this->nosql->db = 0; # db索引
  51. // $this->nosql->host = "162.168.10.16"; # host/ip
  52. // $this->nosql->port = 6004; # 端口
  53. // $this->nosql->pwd = 'wanggang1985'; # 密钥
  54. // $this->nosql->db = 0;
  55. }
  56. /**
  57. * MongoDB
  58. */
  59. protected function _InitMongoDB() {
  60. $this->mongo->db = "ylsj2019";
  61. $this->mongo->conn = "mongodb://gwang:wanggang1985@localhost:23333/?authSource=admin";
  62. }
  63. }
  64. return new config_dev_wg();