<?php
|
namespace app\api\logic;
|
|
use app\common\logic\Basic as BasicLogic;
|
use app\api\model\Homemenu as ModelHomemenu;
|
|
/**
|
* 金刚区管理
|
*/
|
class Homemenu extends BasicLogic
|
{
|
|
protected $model = null;
|
|
public function __construct()
|
{
|
parent::__construct();
|
|
$this->model = new ModelHomemenu();
|
}
|
|
/**
|
* 获取金刚区信息
|
*
|
* @return void
|
*/
|
public function getList($type,$group = "")
|
{
|
$where['status'] = 1;
|
$where['type'] = $type;
|
!empty($group) && $where['group'] = $group;
|
$system_type = MOBILE_INFO == "IOS" ? 1 : 2;
|
$where['system_type'] = ['in',[0,$system_type]];
|
$list = $this->model->field('id,mname,group,type,image,parameter_json,url_type,is_top')->where($where)->order('is_top desc,sort desc')->select();
|
return empty($list) ? [] : $list;
|
}
|
|
|
}
|