Browse Source

cms 临时走旧域名

24753255@qq.com 5 months ago
parent
commit
5caf9cd952
1 changed files with 3 additions and 0 deletions
  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']);
     }