diff --git a/application/controllers/Api/Sysset.php b/application/controllers/Api/Sysset.php index 80bb0b4..3622686 100644 --- a/application/controllers/Api/Sysset.php +++ b/application/controllers/Api/Sysset.php @@ -39,9 +39,9 @@ class Api_SyssetController extends Ctrl_Api{ $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); + $this->CageSetModel->save($cageSet); + $this->SquirrelSetModel->save($squirrelSet); + $this->ExcelSetModel->save($excelSet); Tool_Fnc::apiMsg('设置成功', '200'); //写入配置 }