Commit fdf71c62 by lujunyi

限购数量错误

parent 6ada1c85
......@@ -448,7 +448,7 @@ public function enter(Request $request)
// 用药信息 中药:[['pharmacy_drug_id'=>2,'unit'=>'盒','num'=>1]]
$drug_info = [];
foreach ($drugs as $drug) {
if( intval($drug['num']) <= 0 ){
if (intval($drug['num']) <= 0) {
return $this->failed('请输入正确的中药数量!');
}
$pharmacyDrugQueryInfo = PharmacyDrugModel::with(['drug', 'dosage'])->find($drug['pharmacy_drug_id']);
......
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