base.ini.php 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. <?php declare(strict_types=1);
  2. defined('InShopNC') or exit('Access Invalid!');
  3. define('USE_REMOTE_IMAGE',false);
  4. define('DEBUG_MODE',true);
  5. define('MOBILE_PUBLISH',false);
  6. define('PUSH_OMS',true);
  7. define('LOCAL_DEBUG',false);
  8. define('BONUS_EXPIRY_DATE',true);
  9. define('USE_BONUS_RATE',false);
  10. define('SERVER_TYPE','panda');
  11. define('CROSS_DOAMIN',true);
  12. define('COMPANY_NAME', 'XYZ_COMPANY');
  13. define('ZERO_GOODS_ID', 6405);
  14. $config = [];
  15. $config['base_site_url'] = SRV_HOST;
  16. $config['client_site_url'] = SRV_HOST;
  17. $config['shop_site_url'] = SRV_HOST.'/shop';
  18. $config['cms_site_url'] = SRV_HOST.'/cms';
  19. $config['microshop_site_url'] = SRV_HOST.'/microshop';
  20. $config['circle_site_url'] = SRV_HOST.'/circle';
  21. $config['admin_site_url'] = SRV_HOST.'/admin';
  22. $config['mobile_site_url'] = SRV_HOST.'/mobile';
  23. $config['wap_site_url'] = SRV_HOST.'/wap';
  24. $config['chat_site_url'] = SRV_HOST.'/chat';
  25. $config['node_site_url'] = 'http://127.0.0.1:8090';
  26. $config['delivery_site_url'] = SRV_HOST.'/delivery';
  27. $config['system_manager_phones'] = [
  28. '13911129867' , '18500608333' , '18500350111' , '15136908757'
  29. ];
  30. if(defined('USE_REMOTE_IMAGE') && USE_REMOTE_IMAGE == true) {
  31. $config['upload_site_url'] = REMOTE_IMG_HOST.'/data/upload';
  32. $config['resource_site_url'] = REMOTE_IMG_HOST.'/data/resource';
  33. } else {
  34. $config['upload_site_url'] = SRV_HOST.'/data/upload';
  35. $config['resource_site_url'] = SRV_HOST.'/data/resource';
  36. }
  37. $config['version'] = '201502020388';
  38. $config['setup_date'] = '2015-08-22 15:52:34';
  39. $config['gip'] = 0;
  40. $config['dbdriver'] = 'mysqli';
  41. $config['tablepre'] = 'lrlz_';
  42. define('SSH_TUNEL_PROD','local');
  43. //define('SSH_TUNEL_PROD','xyz');
  44. //define('SSH_TUNEL_PROD','lingzh');
  45. if(SSH_TUNEL_PROD ==='local') {
  46. $config['db'][1]['dbhost'] = MASTER_DBHOST;
  47. $config['db'][1]['dbport'] = '3306';
  48. $config['db'][1]['dbuser'] = 'root';
  49. $config['db'][1]['dbpwd'] = 'stanley@55668899';
  50. $config['db'][1]['dbname'] = 'xyzshop';
  51. $config['db'][1]['dbcharset'] = 'UTF-8';
  52. $config['db']['slave'][0]['dbhost'] = SLAVE_DBHOST;
  53. $config['db']['slave'][0]['dbport'] = '3306';
  54. $config['db']['slave'][0]['dbuser'] = 'root';
  55. $config['db']['slave'][0]['dbpwd'] = 'stanley@55668899';
  56. $config['db']['slave'][0]['dbname'] = 'xyzshop';
  57. $config['db']['slave'][0]['dbcharset'] = 'UTF-8';
  58. }
  59. elseif(SSH_TUNEL_PROD === 'xyz') {
  60. //调试是先执行这行命令
  61. //shell_exec("ssh -NCPf root@121.89.223.81 -L 3307:127.0.0.1:3306");
  62. $config['db'][1]['dbhost'] = MASTER_DBHOST;
  63. $config['db'][1]['dbport'] = '3307';
  64. $config['db'][1]['dbuser'] = 'root';
  65. $config['db'][1]['dbpwd'] = 'XTZ@shop@951688';
  66. $config['db'][1]['dbname'] = 'xyzshop';
  67. $config['db'][1]['dbcharset'] = 'UTF-8';
  68. $config['db']['slave'][0]['dbhost'] = SLAVE_DBHOST;
  69. $config['db']['slave'][0]['dbport'] = '3307';
  70. $config['db']['slave'][0]['dbuser'] = 'root';
  71. $config['db']['slave'][0]['dbpwd'] = 'XTZ@shop@951688';
  72. $config['db']['slave'][0]['dbname'] = 'xyzshop';
  73. $config['db']['slave'][0]['dbcharset'] = 'UTF-8';
  74. }
  75. elseif(SSH_TUNEL_PROD === 'lingzh') {
  76. //调试是先执行这行命令
  77. //shell_exec("ssh -NCPf root@121.89.212.167 -L 3307:127.0.0.1:3306");
  78. $config['db'][1]['dbhost'] = MASTER_DBHOST;
  79. $config['db'][1]['dbport'] = '3307';
  80. $config['db'][1]['dbuser'] = 'root';
  81. $config['db'][1]['dbpwd'] = 'Linzhuhmnbmhhah#2021';
  82. $config['db'][1]['dbname'] = 'xyzshop';
  83. $config['db'][1]['dbcharset'] = 'UTF-8';
  84. $config['db']['slave'][0]['dbhost'] = SLAVE_DBHOST;
  85. $config['db']['slave'][0]['dbport'] = '3307';
  86. $config['db']['slave'][0]['dbuser'] = 'root';
  87. $config['db']['slave'][0]['dbpwd'] = 'Linzhuhmnbmhhah#2021';
  88. $config['db']['slave'][0]['dbname'] = 'xyzshop';
  89. $config['db']['slave'][0]['dbcharset'] = 'UTF-8';
  90. }
  91. $config['session_expire'] = 3600;
  92. $config['lang_type'] = 'zh_cn';
  93. $config['cookie_pre'] = '6B0C_';
  94. $config['thumb']['cut_type'] = 'gd';
  95. $config['thumb']['impath'] = '';
  96. $config['cache']['type'] = 'redis';
  97. $config['redis']['prefix'] = 'nc_';
  98. $config['redis']['master']['host'] = MASTER_REDISHOST;
  99. $config['redis']['master']['port'] = 6379;
  100. $config['redis']['master']['pconnect'] = 0;
  101. $config['redis']['slave']['host'] = SLAVE_REDISHOST;
  102. $config['redis']['slave']['port'] = 6379;
  103. $config['redis']['slave']['pconnect'] = 0;
  104. $config['coroutine']['redis_host'] = 'host.docker.internal';
  105. $config['coroutine']['redis_port'] = 6379;
  106. //$config['fullindexer']['open'] = false;
  107. //$config['fullindexer']['appname'] = '33hao';
  108. $config['debug'] = false;
  109. $config['default_store_id'] = '1';
  110. //如果开始伪静态,这里设置为true
  111. $config['url_model'] = false;
  112. //如果店铺开启二级域名绑定的,这里填写主域名如baidu.com
  113. $config['subdomain_suffix'] = '';
  114. $config['session_type'] = 'redis';
  115. $config['session_save_path'] = SESSION_SAVE_PATH;
  116. $config['node_chat'] = true;
  117. //流量记录表数量,为1~10之间的数字,默认为3,数字设置完成后请不要轻易修改,否则可能造成流量统计功能数据错误
  118. $config['flowstat_tablenum'] = 3;
  119. $config['sms']['gwUrl'] = 'http://sdkhttp.eucp.b2m.cn/sdk/SDKService';
  120. $config['sms']['serialNumber'] = '';
  121. $config['sms']['password'] = '';
  122. $config['sms']['sessionKey'] = '';
  123. $config['queue']['open'] = true;
  124. $config['queue']['host'] = QUEUEHOST;
  125. $config['queue']['port'] = 6379;
  126. $config['cache_open'] = true;
  127. $config['return_address'] = ['address' => '上海市金山区朱吕公路7335号','name' => "大熊猫(丽帆供应链)",'tel_phone' => '17301603655','zip_code' => '201600'];
  128. $config['area_version'] = 5;
  129. $config['appjump_prefix'] = 'xyzshop://www.xyzshops.com';
  130. $config['client_setting'] = ['running' => 174,'home' => 0];
  131. $config['wsd_bradge_port'] = 60987;
  132. $config['card_key_stores'] = [6];
  133. $config['phone_life_check'] = false;