From a4ae3547d00394a0604082a152faac4b5ed0fdd8 Mon Sep 17 00:00:00 2001 From: pengda <10266652509@qq.com> Date: Thu, 19 Sep 2024 17:25:05 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BD=95=E6=96=B9=E5=90=8E=E5=8F=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- control/index.php | 8 +++----- model/mFormula.php | 1 - 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/control/index.php b/control/index.php index c752112..1851762 100644 --- a/control/index.php +++ b/control/index.php @@ -108,7 +108,6 @@ class index extends publicBase { $uinfo = $this->_check_login(); $id = $this->post('id') + 0; - $is_delete = $this->post('is_delete') + 0; $name = trim($this->post('name')); $source = trim($this->post('source')); $method = trim($this->post('method')); @@ -121,8 +120,7 @@ class index extends publicBase { $request_times = $mformula->requestLimit(sprintf(_QR_REQUEST_LIMIT, $request_id), 1, 60); if (!$request_times) $this->ajax_json(false, $mformula->getError()); - //新增药方 - $id = $mformula->saveFormula($uinfo['uid'], $id, $name, $source, $method, $herbs, $is_delete); + $id = $mformula->saveFormula($uinfo['uid'], $id, $name, $source, $method, $herbs); if (!$id) $this->ajax_json(false, $mformula->getError()); $this->ajax_json(true, '请求成功', array('id' => $id)); @@ -365,10 +363,10 @@ class index extends publicBase { //导出全部医案 if ($id == 0) { $start_date = $this->post('start_date'); - if (empty($start_date)) $this->ajax_json(false, '请选择导出开始时间'); + //if (empty($start_date)) $this->ajax_json(false, '请选择导出开始时间'); $end_date = $this->post('end_date'); - if (empty($end_date)) $this->ajax_json(false, '请选择导出结束时间'); + //if (empty($end_date)) $this->ajax_json(false, '请选择导出结束时间'); $post_url = USER_CASE_LIST_HTML_URL; $data = array( diff --git a/model/mFormula.php b/model/mFormula.php index a61ddc4..e7e86aa 100644 --- a/model/mFormula.php +++ b/model/mFormula.php @@ -283,7 +283,6 @@ class mFormula extends mBase { $temp['num'] = 0; //$temp['num'] = $this->convertToNum($name, $num, false); } - $temp['sort'] = $key; $formula_herb[] = $temp;