fixed 提交作品次数

This commit is contained in:
xiaoxiaoqiong 2022-07-01 15:31:33 +08:00
parent a583d3156a
commit 16f2aecb6d
1 changed files with 1 additions and 1 deletions

View File

@ -7,7 +7,7 @@ class LimitForbidControl::CompetitionApiScore < LimitForbidControl::Base
end
def allow_times
EduSetting.get('daily_api_score_times').presence || 3
EduSetting.get('daily_api_score_times').presence.to_i || 3
end
def forbid_expires