params.php 770 B

1234567891011121314151617181920212223242526
  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. //全站统一使用的秘钥
  17. 'secretKey' => 'CzWjvVY5F.dUqT65Knj81qh_eU2wI3SokO',
  18. 'imgUrl' => $imgUrl,
  19. 'adminUrl' => $adminUrl,
  20. 'frontUrl' => $frontUrl,
  21. 'openUrl' => $openUrl,
  22. 'picUrl' => $picUrl,
  23. 'wwwUrl' => $wwwUrl,
  24. 'mobileUrl' => $mobileUrl,
  25. 'miniUrl' => $miniUrl,
  26. ];