加密逻辑修复

This commit is contained in:
2024-12-27 15:59:11 +08:00
parent 6ab5457e0e
commit 4e386b8049

View File

@@ -178,7 +178,7 @@ class DrugForm extends BaseModel
{
$drug = Drug::find()->where([
'id' => $this->id,
'type' => $this->type,
// 'type' => $this->type,
])->one();
if (!$drug) throw new Exception('该药品不存在');