|
|
|
@ -35,10 +35,13 @@ class Api_SyssetController extends Ctrl_Api{ |
|
|
|
|
public function editSetAction(){ |
|
|
|
|
$uid = empty($this->POST['uid'])?Tool_Fnc::apiMsg('请先登录', '500'):$this->POST['uid']; |
|
|
|
|
$cageSet = $this->POST['cageSet']; |
|
|
|
|
$cageSet['user_id']=$uid; |
|
|
|
|
$squirrelSet = $this->POST['squirrelSet']; |
|
|
|
|
$squirrelSet['user_id']=$uid; |
|
|
|
|
$excelSet = $this->POST['excelSet']; |
|
|
|
|
$excelSet['now_squirrel']=json_encode($excelSet['now_squirrel']); |
|
|
|
|
$excelSet['handle_squirrel']=json_encode($excelSet['handle_squirrel']); |
|
|
|
|
$excelSet['user_id']=$uid; |
|
|
|
|
$this->CageSetModel->save($cageSet); |
|
|
|
|
$this->SquirrelSetModel->save($squirrelSet); |
|
|
|
|
$this->ExcelSetModel->save($excelSet); |
|
|
|
|