Skip to content

Commit

Permalink
growth logs
Browse files Browse the repository at this point in the history
  • Loading branch information
qinmingyuan committed Mar 6, 2024
1 parent d1ab9f7 commit 401a090
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions app/controllers/growth/controller/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion app/models/growth/model/aim_entity.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion app/models/growth/model/aim_log.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 401a090

Please sign in to comment.