...
|
...
|
@@ -17,15 +17,27 @@ class Controller_MobileApi extends Controller_Abstract |
|
|
foreach($modules as $module)
|
|
|
{
|
|
|
$headCover = '';
|
|
|
$url = '';
|
|
|
if($module['id'] == 1)
|
|
|
{
|
|
|
$headCover = SITE_IMG.'/yohood/yohood-logo-mobile_v3.png';
|
|
|
}
|
|
|
if(!empty($module['url']))
|
|
|
{
|
|
|
if(preg_match('@^http://@', $module['url']))
|
|
|
{
|
|
|
$url = $module['url'];
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
$url = SITE_MAIN.$module['url'];
|
|
|
}
|
|
|
}
|
|
|
$data [] = array('id'=> $module['id'],
|
|
|
'status'=> $module['status'],
|
|
|
'moduleName' => $module['module_name'],
|
|
|
'headCover' => $headCover,
|
|
|
'url' => !empty($module['url']) ? SITE_MAIN.$module['url'] :'',
|
|
|
'url' => $url,
|
|
|
);
|
|
|
}
|
|
|
return $this->returnJson(self::SUCCESS_STATUS_CODE, Config_Code_Mobile::$success_opt['code'], $data, Config_Code_Mobile::$success_opt['message']);
|
...
|
...
|
|