Commit 51b4c420 by lujunyi

限购修改

parent 6eaa48da
...@@ -140,7 +140,7 @@ public function drugLimit(Request $request) ...@@ -140,7 +140,7 @@ 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) {
$drugName = $drugInfo_7->drug_name ?? ''; $drugName = $drugInfo_7['drug_name'] ?? '';
if ($drugInfo_7 && in_array($drugName, $limit_keywords)) { 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