Authored by whb

toyota

@@ -15,7 +15,7 @@ class ToyotaController extends HuodongAction @@ -15,7 +15,7 @@ class ToyotaController extends HuodongAction
15 if(!empty($url)) 15 if(!empty($url))
16 { 16 {
17 $host = parse_url($url); 17 $host = parse_url($url);
18 - if(true)//$host['host'] == 'ad.yoho.cn') 18 + if(preg_match('@yoho.cn@i', $host['host']) || preg_match('@yohobuy.com@i', $host['host']) )
19 { 19 {
20 header('location:'.$this->callbackurl.urlencode($url)); 20 header('location:'.$this->callbackurl.urlencode($url));
21 } 21 }