Commit 36644c66 by 赵增煜

bug修改

parent fef20178
......@@ -157,7 +157,7 @@ public function create(Request $request)
$inquiry_info[] = [
'inquiry_id' => $inquiry['inquiry_id'],
'question' => $inquiry->question,
'answer' => $inquiry['answer'] == 1 ? 1 : 0, // [1 => '是', 0 => '否']
'answer' => intval($inquiry['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