sponsor config

This commit is contained in:
qyzh 2021-12-07 16:20:42 +08:00
parent 2a02b6f530
commit 6571db8a3c
1 changed files with 3 additions and 0 deletions

View File

@ -799,6 +799,9 @@ class User < Owner
end
def daily_reward
if !Rails.application.config_for(:configuration)["sponsor"]
return
end
t1 = Time.now
t2 = Time.new(t1.year, t1.month, t1.day)