From c47517c96fe965795447e779a5f945ebadb77474 Mon Sep 17 00:00:00 2001 From: wucongxing <815046773@qq.com> Date: Fri, 15 Dec 2023 08:42:33 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AD=97=E6=AE=B5=E7=BC=93?= =?UTF-8?q?=E5=AD=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Services/PatientCaseService.php | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app/Services/PatientCaseService.php b/app/Services/PatientCaseService.php index f48ec36..ec4b972 100644 --- a/app/Services/PatientCaseService.php +++ b/app/Services/PatientCaseService.php @@ -548,10 +548,7 @@ class PatientCaseService extends BaseService // 判断是否存在于缓存中 if (!empty($redis_value)){ - if (!array_key_exists($key,$redis_value)){ - Db::rollBack(); - return fail(HttpEnumCode::HTTP_ERROR,"存在非法数据"); - }else{ + if (array_key_exists($key,$redis_value)){ if ($redis_value[$key]['is_filled'] == 1){ Db::rollBack(); return fail(HttpEnumCode::HTTP_ERROR,"请勿重复提交");