config.inc.php 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. define('PROJECT_NAME', "horse");
  3. $GLOBALS['codeBaccarat'] = 'eosgetbaccar';
  4. $GLOBALS['codeGtAdmin'] = 'eosgetadmin1';
  5. $GLOBALS['codeAdmin'] = 'eosgetdice12';
  6. $GLOBALS['robotBetAdmin'] = 'rdttod4ta4u2';//机器人下注专用出纳员
  7. $GLOBALS['robotWalletName'] = 'robot';
  8. $GLOBALS['nameServ_php'] = [
  9. 'globals',
  10. 'code',
  11. 'r2m',
  12. ];
  13. $GLOBALS['r2mMode'] = 'lib';
  14. // eos平台的数据库
  15. if (isset($GLOBALS['dbInfo'])) {
  16. // 正式环境和new环境用到
  17. $GLOBALS['dbInfo']['dw_eos'] = $GLOBALS['dbInfo']['dw_dice'] ?: $GLOBALS['dbInfo']['dw_box'];
  18. $GLOBALS['dbInfo']['dw_eos']['dbName'] = 'dw_eos';
  19. // 数据相关的数据库
  20. $GLOBALS['dbInfo']['dw_eos_data'] = $GLOBALS['dbInfo']['dw_dice'] ?: $GLOBALS['dbInfo']['dw_box'];
  21. $GLOBALS['dbInfo']['dw_eos_data']['dbName'] = 'data_report';
  22. // 数据相关的缓存
  23. $GLOBALS['redisInfo']['dw_eos_data'] = $GLOBALS['redisInfo']['logstash_redis'];
  24. }
  25. // 亚马逊云服务特殊处理
  26. //$_SERVER['HTTP_X_REAL_IP'] = $_SERVER['HTTP_X_FORWARDED_FOR'];
  27. $GLOBALS['rewrite'] = array(
  28. '404.html' => 'default/notFound',
  29. 'robots.txt' => 'default/robots',
  30. );
  31. // 缓存2个月
  32. $GLOBALS['defaultKey'] = 'dw_horse';
  33. //$GLOBALS['dbNumberNative'] = true;
  34. //end of script