From 401a09028228724fa2e93ba6ed1c360b965348db Mon Sep 17 00:00:00 2001 From: qinmingyuan Date: Wed, 6 Mar 2024 22:56:57 +0800 Subject: [PATCH] growth logs --- app/controllers/growth/controller/application.rb | 4 ++-- app/models/growth/model/aim_entity.rb | 2 +- app/models/growth/model/aim_log.rb | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/controllers/growth/controller/application.rb b/app/controllers/growth/controller/application.rb index d38c1c8..5cded7e 100755 --- a/app/controllers/growth/controller/application.rb +++ b/app/controllers/growth/controller/application.rb @@ -31,12 +31,12 @@ def growth_api(code, entity = nil) end def growth_log(code) - growth_api(code, params[:entity_type], params[:entity_id]) + growth_api(code, entity) end def growth_record r = growth_api([controller_path, action_name].join('#')) - growth_response(r) if r.present? + #growth_response(r) if r.present? end def growth_response(r) diff --git a/app/models/growth/model/aim_entity.rb b/app/models/growth/model/aim_entity.rb index b7f1ea9..7cf3cd2 100644 --- a/app/models/growth/model/aim_entity.rb +++ b/app/models/growth/model/aim_entity.rb @@ -44,7 +44,7 @@ def init_aim_user end def sync_aim_user_state - aim_user.commit_task_done + #aim_user.commit_task_done end def commit_reward_done diff --git a/app/models/growth/model/aim_log.rb b/app/models/growth/model/aim_log.rb index af2c0ac..2e3c286 100644 --- a/app/models/growth/model/aim_log.rb +++ b/app/models/growth/model/aim_log.rb @@ -74,7 +74,7 @@ def init_serial_number unless sa.blank? return sa.first end - RailsGrowth::SerialNumberHelper.result(created_at, aim.repeat_type) + RailsGrowth::SerialNumberHelper.result(Time.current, aim.repeat_type) end end