You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
945 B
32 lines
945 B
9 months ago
|
<?php
|
||
|
|
||
|
/**
|
||
|
* 获取设置接口
|
||
|
* @author YS
|
||
|
* @version 1.0
|
||
|
*/
|
||
|
class Api_SyssetController extends Ctrl_Api{
|
||
|
public $CageSetModel;
|
||
|
public $SquirrelSetModel;
|
||
|
public $ExcelSetModel;
|
||
|
public function init(){
|
||
|
if(empty($_SESSION['uid'])) {Tool_Fnc::apiMsg('非法调用', '500');}
|
||
|
$this->CageSetModel=new CageSetModel();
|
||
|
$this->SquirrelSetModel=new SquirrelSetModel();
|
||
|
$this->ExcelSetModel=new ExcelSetModel();
|
||
|
}
|
||
|
/**
|
||
|
* 获取设置接口
|
||
|
*/
|
||
|
public function getSetInfoAction(){
|
||
|
$params['user_id'] = $_SESSION['uid'];
|
||
|
//笼位设置
|
||
|
$data['cageSet'] = $this->CageSetModel->getsetinfo($params);
|
||
|
//鼠设置
|
||
|
$data['squirrelSet'] = $this->SquirrelSetModel->getsetinfo($params);
|
||
|
//excel导出设置
|
||
|
$data['excelSet'] = $this->ExcelSetModel->getsetinfo($params);
|
||
|
Tool_Fnc::apiMsg('获取成功', '200',$data);
|
||
|
}
|
||
|
|
||
|
}
|