Authored by biao

update Home.php to remove unnecessary condition. code review by HongFei

... ... @@ -331,7 +331,7 @@ class HomeModel
$data = IndexData::channelData();
$channelList = array();
if($data['code'] == 200 && isset($data['data']['list'])){
if(isset($data['data']['list'])){
foreach($data['data']['list'] as $key => $value){
switch ($value['channel_id']) {
case 5:
... ...