From 655c62defd9cc428634ff8c30f5e10a1287856f0 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Wed, 27 Mar 2019 14:38:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E8=AE=AD=E8=AF=84=E8=AE=BAurl?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/services/shixuns_service.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/services/shixuns_service.rb b/app/services/shixuns_service.rb index dd898cf6..69bbc431 100644 --- a/app/services/shixuns_service.rb +++ b/app/services/shixuns_service.rb @@ -130,7 +130,7 @@ class ShixunsService if manager position = d.position.nil? ? 1 : d.position game_identifier = Game.find_by_sql("SELECT g.identifier FROM games g JOIN challenges c on g.challenge_id = c.id - WHERE c.shixun_id = #{dis.id} AND c.position = #{position} AND g.user_id = #{current_user.id}").first.try(:identifier) + WHERE c.shixun_id = #{dis.id} AND c.position = #{position} AND g.user_id = #{d.user_id}").first.try(:identifier) "/tasks/#{game_identifier}" else ""