Commit e2e6a1d2 by lujunyi

药品限购兼容脏数据

parent 01b3d4d9
......@@ -125,7 +125,7 @@ public function drugLimit(Request $request)
$drugInfos = $prescription->drug_info ?? [];
foreach ($drugInfos as $drugInfo) {
$drugId = $drugInfo['drug_id'];
$drugCounts[$drugId] = ($drugCounts[$drugId] ?? 0) + ($drugInfo['num'] ?? 0);
$drugCounts[$drugId] = ($drugCounts[$drugId] ?? 0) + intval($drugInfo['num']);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment