Explorar o código

cms 临时走旧域名

24753255@qq.com hai 5 meses
pai
achega
5caf9cd952
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      protected/helper/yii.php

+ 3 - 0
protected/helper/yii.php

@@ -203,6 +203,9 @@ function http($method, $type='POST', $authUsername, $params=array(),$subject=0,$
     }elseif($subject=='cgi'){
         $Api=Yii::app()->params['zsy_api_url'];
         $url=$Api.$method;
+        if(strpos($method,'/cms/')!==false){
+            $url=str_replace('xiaoben','xueping',$url);
+        }
         $authPassword  =   md5($authUsername.Yii::app()->params['zsy_api_key']);
     }