|
@@ -110,8 +110,9 @@ class Subject extends Api
|
|
$today_record = RedisUtil::getInstance(RedisKeyEnum::VOTE_RECORD.date('Y-m-d').':'.$this->auth->id)->get();
|
|
$today_record = RedisUtil::getInstance(RedisKeyEnum::VOTE_RECORD.date('Y-m-d').':'.$this->auth->id)->get();
|
|
//今天,免费的的票
|
|
//今天,免费的的票
|
|
$gift_votes = config('site.gift_votes_user_eday');
|
|
$gift_votes = config('site.gift_votes_user_eday');
|
|
- //今天,用户答对的次数,也就是答题获得的票数
|
|
|
|
|
|
+ //今天,用户答对的次数
|
|
$question_vote = RedisUtil::getInstance(RedisKeyEnum::EAXM_RIGHT.date('Y-m-d').':'.$this->auth->id)->get();
|
|
$question_vote = RedisUtil::getInstance(RedisKeyEnum::EAXM_RIGHT.date('Y-m-d').':'.$this->auth->id)->get();
|
|
|
|
+ $question_vote = intval(bcmul($question_vote,config('site.question_right_getvotenum'),0));//乘以基数,也就是答题获得的票数
|
|
//今天,总答题次数
|
|
//今天,总答题次数
|
|
$gift_question = config('site.exam_times_user_eday');
|
|
$gift_question = config('site.exam_times_user_eday');
|
|
//今天,已答题次数
|
|
//今天,已答题次数
|