|
|
|
@ -29,5 +29,21 @@ class Api_SyssetController extends Ctrl_Api{ |
|
|
|
|
$data['excelSet'] = $this->ExcelSetModel->getsetinfo($params); |
|
|
|
|
Tool_Fnc::apiMsg('获取成功', '200',$data); |
|
|
|
|
} |
|
|
|
|
/** |
|
|
|
|
* 获取设置接口 |
|
|
|
|
*/ |
|
|
|
|
public function editSetAction(){ |
|
|
|
|
$uid = empty($this->POST['uid'])?Tool_Fnc::apiMsg('请先登录', '500'):$this->POST['uid']; |
|
|
|
|
$cageSet = $this->POST['cageSet']; |
|
|
|
|
$squirrelSet = $this->POST['squirrelSet']; |
|
|
|
|
$excelSet = $this->POST['excelSet']; |
|
|
|
|
$excelSet['now_squirrel']=json_encode($excelSet['now_squirrel']); |
|
|
|
|
$excelSet['handle_squirrel']=json_encode($excelSet['handle_squirrel']); |
|
|
|
|
$this->CageSetModel->update($cageSet); |
|
|
|
|
$this->SquirrelSetModel->update($squirrelSet); |
|
|
|
|
$this->ExcelSetModel->update($excelSet); |
|
|
|
|
Tool_Fnc::apiMsg('设置成功', '200'); |
|
|
|
|
//写入配置 |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |