Commit 4e3f78e7 by 赵增煜

增加日志

parent 28dc3db6
......@@ -128,6 +128,7 @@ public function drugLimit(Request $request)
$drugCounts[$drugId] = ($drugCounts[$drugId] ?? 0) + $drugInfo['num'];
}
}
// 查询已经开过方的药方(7天内)
$sevenDayAgo = Carbon::now()->subDay(7);
$prescriptions_7 = PrescriptionModel::where('patient_id', $patient_id)
......@@ -158,7 +159,7 @@ public function drugLimit(Request $request)
if ($canBuyMahuangCount < 0) {
$canBuyMahuangCount = 0;
}
Log::info('all_limit_num=>' . $limit_num . ' drugCounts=>' . $drugCounts . ' drugs=>' . $drugs .' canBuyMahuangCount=>'.$canBuyMahuangCount);
// 处理麻黄素药品数据
$mahuangsu_buy_num = 0; // 本次购买麻黄素药品数量
foreach ($drugs as &$drug) {
......
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