where(['enable'=>1, 'del'=>0]) ->order('id desc') ->find(); if($ret){ HelpHander::success($ret); }else{ HelpHander::error('暂无数据'); } } public function newAppIos(){ $ret = Db::name('app_ios') ->where(['enable'=>1, 'del'=>0]) ->order('id desc') ->find(); if($ret){ HelpHander::success($ret); }else{ HelpHander::error('暂无数据'); } } public function staticUrl(){ $data=[ 'adoutUsUrl' => url('h5/Index/sysarticle',['name'=>'about'],false,true), 'privacyPolicyUrl' => url('h5/Index/sysarticle',['name'=>'privacy'],false,true), 'disclaimerUrl' => url('h5/Index/sysarticle',['name'=>'disclaimer'],false,true), ]; HelpHander::success($data); } public function deps(){ $orgId = input('orgId/d',0); $deps = Db::name('dep') ->where('org_id',$orgId) ->where('del',0) ->where('enable',1) ->field('id,title') ->select(); $deps = $deps?$deps:[]; HelpHander::success($deps,'成功'); } }