params.php 891 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. $hostData = \common\components\httpUtil::getHostData();
  3. $http = $hostData['http'];
  4. $suffix = $hostData['suffix'];
  5. $miniUrl = $http . 'mini.' . $suffix;
  6. $imgUrl = $http . 'img.' . $suffix;
  7. $adminUrl = $http . 'a.' . $suffix;
  8. $frontUrl = $http . 'm.' . $suffix;
  9. $mobileUrl = $http . 'm.' . $suffix;
  10. $openUrl = $http . 'o.' . $suffix;
  11. $picUrl = $http . 'pic.' . $suffix;
  12. $wwwUrl = $http . 'www.' . $suffix;
  13. $cssUrl = $http . 'css.' . $suffix;
  14. $jsUrl = $http . 'js.' . $suffix;
  15. return [
  16. 'adminEmail' => 'admin@example.com',
  17. 'supportEmail' => 'support@example.com',
  18. 'user.passwordResetTokenExpire' => 3600,
  19. //全站统一使用的秘钥
  20. 'secretKey' => 'cMWjvVY5F-dqT6XKnj81qheU2wI3Sok-',
  21. 'imgUrl' => $imgUrl,
  22. 'adminUrl' => $adminUrl,
  23. 'frontUrl' => $frontUrl,
  24. 'openUrl' => $openUrl,
  25. 'picUrl' => $picUrl,
  26. 'wwwUrl' => $wwwUrl,
  27. 'mobileUrl' => $mobileUrl,
  28. 'miniUrl' => $miniUrl,
  29. ];