Commit 3c7233bb by lujunyi

限购报错

parent 9f39985f
...@@ -140,7 +140,8 @@ public function drugLimit(Request $request) ...@@ -140,7 +140,8 @@ public function drugLimit(Request $request)
foreach ($prescriptions_7 as $prescription_7) { foreach ($prescriptions_7 as $prescription_7) {
$drugInfos_7 = $prescription_7->drug_info ?? []; $drugInfos_7 = $prescription_7->drug_info ?? [];
foreach ($drugInfos_7 as $drugInfo_7) { foreach ($drugInfos_7 as $drugInfo_7) {
if ($drugInfo_7 && in_array($drugInfo_7->drug_name, $limit_keywords)) { $drugName = $drugInfo_7->drug_name ?? '';
if ($drugInfo_7 && in_array($drugName, $limit_keywords)) {
$buyed_mahuang_counts += $drugInfo_7['num']; $buyed_mahuang_counts += $drugInfo_7['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