Selaa lähdekoodia

httputil方法名修改

shish 6 vuotta sitten
vanhempi
commit
51fa84cee8
2 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 1 1
      common/components/httpUtil.php
  2. 1 1
      common/config/params.php

+ 1 - 1
common/components/httpUtil.php

@@ -13,7 +13,7 @@ use Yii;
 class httpUtil
 class httpUtil
 {
 {
 	//专用方法,请勿修改 shish 2019.11.21
 	//专用方法,请勿修改 shish 2019.11.21
-	public static function getHostData()
+	public static function getHttpHost()
 	{
 	{
 		$http = isset($_SERVER['REQUEST_SCHEME']) ? $_SERVER['REQUEST_SCHEME'] . '://' : 'https://';
 		$http = isset($_SERVER['REQUEST_SCHEME']) ? $_SERVER['REQUEST_SCHEME'] . '://' : 'https://';
 		$suffix = 'huahb.com';
 		$suffix = 'huahb.com';

+ 1 - 1
common/config/params.php

@@ -1,5 +1,5 @@
 <?php
 <?php
-$hostData = \common\components\httpUtil::getHostData();
+$hostData = \common\components\httpUtil::getHttpHost();
 $http = $hostData['http'];
 $http = $hostData['http'];
 $suffix = $hostData['suffix'];
 $suffix = $hostData['suffix'];
 $miniUrl = $http . 'mini.' . $suffix;
 $miniUrl = $http . 'mini.' . $suffix;