Commit 1ce170d0 by 赵增煜

Merge branch 'hotfix-1201' into develop

parents 2d2b5e61 bdc9169d
......@@ -143,9 +143,10 @@ public function create(Request $request)
$inquiry_info = [];
$is_abnormal = 0; // 是否异常处方单,只有一个问题回答是就是异常
foreach ($inquirys as $inquiry) {
$inquiry = InquiryModel::find($inquiry['inquiry_id']);
$inquiry_info[] = [
'inquiry_id' => $inquiry['inquiry_id'],
'question' => InquiryModel::find($inquiry['inquiry_id'])->value('question'),
'question' => $inquiry->question,
'answer' => $inquiry['answer'] == 1 ? 1 : 0, // [1 => '是', 0 => '否']
];
// 检查是否有一个answer是1
......
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