Authored by biao

update for models of Index. code review by HongFei

@@ -19,6 +19,6 @@ class IndexData { @@ -19,6 +19,6 @@ class IndexData {
19 { 19 {
20 $param = Yohobuy::param(); 20 $param = Yohobuy::param();
21 $param['client_secret'] = Sign::getSign($param); 21 $param['client_secret'] = Sign::getSign($param);
22 - return Yohobuy::get('http://service.api.yohobuy.com/operations/api/v5/entrance/getEntrance',$param); 22 + return Yohobuy::get(Yohobuy::SERVICE_URL . 'operations/api/v5/entrance/getEntrance',$param);
23 } 23 }
24 } 24 }
@@ -19,6 +19,7 @@ class IndexModel @@ -19,6 +19,7 @@ class IndexModel
19 $result = array(); 19 $result = array();
20 $result['showYohood'] = false; 20 $result['showYohood'] = false;
21 21
  22 +
22 $data = IndexData::channelData(); 23 $data = IndexData::channelData();
23 24
24 $channelList = array(); 25 $channelList = array();