dev_tpm_ui
daiao 5 years ago
parent cd6e4916da
commit f395b23847

@ -172,7 +172,7 @@ class HackUserLastestCodesController < ApplicationController
# 编程题已经发布,且之前未通关奖励积分
@hack.increment!(:pass_num)
if @hack.status == 1 && !@my_hack.passed?
reward_attrs = { container_id: game.id, container_type: 'Hack', score: @hack.score }
reward_attrs = { container_id: @hack.id, container_type: 'Hack', score: @hack.score }
RewardGradeService.call(@my_hack.user, reward_attrs)
RewardExperienceService.call(@my_hack.user, reward_attrs)
# 评测完成更新通过数

Loading…
Cancel
Save