diff --git a/application/admin/controllers/DataController.php b/application/admin/controllers/DataController.php index 8bfd73a6..3eb1f6fe 100755 --- a/application/admin/controllers/DataController.php +++ b/application/admin/controllers/DataController.php @@ -293,6 +293,8 @@ class Admin_DataController extends Zend_Controller_Action try { $this->db->query($sql,array($delete)); $this->messenger->addMessage('提示信息:您已经成功删除该数据。'); + $search=new Search(); + $search->del($delete,'id'); } catch (Exception $e) { $this->messenger->addMessage($e->getMessage()); } @@ -2423,7 +2425,12 @@ class Admin_DataController extends Zend_Controller_Action $data = array("commited"=>1,"error"=>'该版本已经成功发布!'); $this->jsonexit($data); return true; - } + } + $sql="select * from xunsearch whre uuid=?"; + $sth = $this->db->prepare($sql); + $sth->execute(array($row['uuid'])); + $row = $sth->fetch(); + $search->update($row); }catch(Exception $e) { $msg = "提交失败,请确认权限后重试"; if($this->debug>0)