...
|
...
|
@@ -13,14 +13,14 @@ use LibModels\Wap\Index\IndexData; |
|
|
*
|
|
|
* @author Administrator
|
|
|
*/
|
|
|
class IndexModel
|
|
|
class IndexModel
|
|
|
{
|
|
|
public function getChannel(){
|
|
|
public static function getChannel(){
|
|
|
$result = array();
|
|
|
$result['showYohood'] = true;
|
|
|
|
|
|
|
|
|
$data = IndexData::channelData();
|
|
|
|
|
|
|
|
|
$channelList = array();
|
|
|
if($data['code'] == 200 && isset($data['data']['list'])){
|
|
|
foreach($data['data']['list'] as $key => $value){
|
...
|
...
|
@@ -54,8 +54,8 @@ class IndexModel |
|
|
}
|
|
|
$result['channelList'] = $channelList;
|
|
|
}
|
|
|
|
|
|
|
|
|
return $result;
|
|
|
}
|
|
|
|
|
|
|
|
|
} |
...
|
...
|
|