Jelajahi Sumber

httputil方法名修改

shish 6 tahun lalu
induk
melakukan
51fa84cee8
2 mengubah file dengan 2 tambahan dan 2 penghapusan
  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
 {
 	//专用方法,请勿修改 shish 2019.11.21
-	public static function getHostData()
+	public static function getHttpHost()
 	{
 		$http = isset($_SERVER['REQUEST_SCHEME']) ? $_SERVER['REQUEST_SCHEME'] . '://' : 'https://';
 		$suffix = 'huahb.com';

+ 1 - 1
common/config/params.php

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