From 9e6ae1749cfbc6f4124b8bded2e4ed19ae8aba1f Mon Sep 17 00:00:00 2001 From: wlx Date: Wed, 23 Jan 2013 00:19:52 +0000 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E7=8E=B0=E5=85=83=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E5=88=A0=E9=99=A4=E5=8F=8A=E7=89=88=E6=9C=AC=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E6=97=B6=E5=AF=B9=E5=BA=94=E7=9A=84=E6=90=9C=E7=B4=A2=E6=9B=B4?= =?UTF-8?q?=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/controllers/DataController.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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)