From 02820f58279f4eb3cdfe390060ab8fb6d27e87f2 Mon Sep 17 00:00:00 2001 From: pengda <10266652509@qq.com> Date: Fri, 13 Sep 2024 17:46:00 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9F=A5=E8=8D=AF=E6=96=B9=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=20=E5=88=97=E8=A1=A8=E5=A2=9E=E5=8A=A0=E7=94=A8=E6=88=B7?= =?UTF-8?q?=E8=87=AA=E6=8B=9F=E8=8D=AF=E6=96=B9=20=E6=9F=A5=E8=8D=AF?= =?UTF-8?q?=E6=96=B9=E8=AF=A6=E6=83=85=20=E5=85=BC=E5=AE=B9=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2=E7=94=A8=E6=88=B7=E8=87=AA=E6=8B=9F=E8=8D=AF=E6=96=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- control/index.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/control/index.php b/control/index.php index 9ad1463..0ac7eac 100644 --- a/control/index.php +++ b/control/index.php @@ -27,7 +27,7 @@ class index extends publicBase { public function home() { $id = $this->get('id'); - $mformula = new mFormulaNew(); + $mformula = new mFormula(); $data = $mformula->getFormulaInfo($id); $this->view['data'] = $data; @@ -40,7 +40,7 @@ class index extends publicBase { $herbs = $this->post('herbs'); //新增药方 - $mformula = new mFormulaNew(); + $mformula = new mFormula(); $id = $mformula->createCase($name, $source, $method, $herbs); if (!$id) $this->ajax_json(false, $mformula->getError()); @@ -55,7 +55,7 @@ class index extends publicBase { $method = trim($this->post('method')); $herbs = $this->post('herbs'); - $mformula = new mFormulaNew(); + $mformula = new mFormula(); $res = $mformula->updateCase($id, $name, $source, $method, $herbs); if (!$res) $this->ajax_json(false, $mformula->getError()); @@ -71,7 +71,7 @@ class index extends publicBase { $page_num = $this->post('page_num') ? $this->post('page_num') : 1; $page_size = $this->post('page_size') ? $this->post('page_size') : 20; - $mformula = new mFormulaNew(); + $mformula = new mFormula(); $list = $mformula->getFormulaList($uinfo['uid'], $page_num, $page_size, $content); $total = $mformula->getFormulaTotal($uinfo['uid'], $content); @@ -92,7 +92,7 @@ class index extends publicBase { $id = $this->post('id') + 0; if (!$id) $this->ajax_json(false, '参数错误'); - $mformula = new mFormulaNew(); + $mformula = new mFormula(); $data = $mformula->getFormulaInfo($id); if (!$data) $this->ajax_json(false, $mformula->getError()); @@ -186,7 +186,7 @@ class index extends publicBase { $page_num = $this->post('page_num') ? $this->post('page_num') : 1; $page_size = $this->post('page_size') ? $this->post('page_size') : 100; - $mformula = new mFormulaNew(); + $mformula = new mFormula(); $data = $mformula->getCollectLog($page_num, $page_size); $total = $mformula->getCollectLogTotal();