yangsai@163.com 6 months ago
parent d07ac49847
commit 4bc795b003
  1. 3
      application/controllers/Api/Sysset.php

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

Loading…
Cancel
Save