Commit ca1bc550 by lujunyi

fix

parent f91b3b7a
......@@ -159,7 +159,7 @@ public function create(Request $request)
$inquiry_info[] = [
'inquiry_id' => $inquiry['inquiry_id'],
'question' => $inquiry->question,
'answer' => $answer === 1 ? 1 : 0, // [1 => '是', 0 => '否']
'answer' => $answer === 1 ? 1 : 0, // [1 => '是', 0 => '否']
];
// 检查是否有一个answer是1
if ($inquiry['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