|
@@ -159,14 +159,14 @@ class QuestionController extends AbstractController
|
|
}
|
|
}
|
|
|
|
|
|
//答题日志
|
|
//答题日志
|
|
- $right_score = intval(bcmul($is_right_number,site('question_right_getscore'),0));//乘以基数,也就是答题获得的分数
|
|
|
|
|
|
+ $right_score = intval(bcmul((string)$is_right_number,site('question_right_getscore'),0));//乘以基数,也就是答题获得的分数
|
|
$this->service->questionPush(['log_data' => $log_data, 'is_right_number' => $right_score, 'bind_jigou_id' => $user['bind_jigou_id']], 0);
|
|
$this->service->questionPush(['log_data' => $log_data, 'is_right_number' => $right_score, 'bind_jigou_id' => $user['bind_jigou_id']], 0);
|
|
//给机构加分
|
|
//给机构加分
|
|
|
|
|
|
|
|
|
|
//返回正确了几道题,剩余答题次数
|
|
//返回正确了几道题,剩余答题次数
|
|
- $right_vote = intval(bcmul($is_right_number,site('question_right_getvotenum'),0));//乘以基数,也就是答题获得的票数
|
|
|
|
- $question_vote = intval(bcmul($exam_times_user_eday,site('question_right_getvotenum'),0));//乘以基数,也就是答题获得的票数
|
|
|
|
|
|
+ $right_vote = intval(bcmul((string)$is_right_number,site('question_right_getvotenum'),0));//乘以基数,也就是答题获得的票数
|
|
|
|
+ $question_vote = intval(bcmul((string)$exam_times_user_eday,site('question_right_getvotenum'),0));//乘以基数,也就是答题获得的票数
|
|
$result = [
|
|
$result = [
|
|
'remark' => '答对'.$is_right_number.'题,获得'.$right_vote.'次投票次数,答题最多可获得'.$question_vote.'次投票机会',
|
|
'remark' => '答对'.$is_right_number.'题,获得'.$right_vote.'次投票次数,答题最多可获得'.$question_vote.'次投票机会',
|
|
'submit_number'=> count($user_questions),
|
|
'submit_number'=> count($user_questions),
|