修改字段缓存

This commit is contained in:
wucongxing 2023-12-15 08:42:33 +08:00
parent fe36a05758
commit c47517c96f

View File

@ -548,10 +548,7 @@ class PatientCaseService extends BaseService
// 判断是否存在于缓存中 // 判断是否存在于缓存中
if (!empty($redis_value)){ if (!empty($redis_value)){
if (!array_key_exists($key,$redis_value)){ if (array_key_exists($key,$redis_value)){
Db::rollBack();
return fail(HttpEnumCode::HTTP_ERROR,"存在非法数据");
}else{
if ($redis_value[$key]['is_filled'] == 1){ if ($redis_value[$key]['is_filled'] == 1){
Db::rollBack(); Db::rollBack();
return fail(HttpEnumCode::HTTP_ERROR,"请勿重复提交"); return fail(HttpEnumCode::HTTP_ERROR,"请勿重复提交");