From a38d4f15a6f182650b6516c27f1f47fdd991bdb1 Mon Sep 17 00:00:00 2001 From: yuanke <249218296@qq.com> Date: Mon, 22 Aug 2016 10:50:22 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/wechats_controller.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/wechats_controller.rb b/app/controllers/wechats_controller.rb index 1deb55d63..364e8f22e 100644 --- a/app/controllers/wechats_controller.rb +++ b/app/controllers/wechats_controller.rb @@ -431,11 +431,11 @@ class WechatsController < ActionController::Base session[:wechat_openid] = open_id if params[:code] if params[:userid] - redirect_to "/wechat/user_activities##{@path}?id=#{params[:id]}&userid=#{params[:userid]}",layout: nil and return + render "/wechat/user_activities##{@path}?id=#{params[:id]}&userid=#{params[:userid]}",layout: nil and return elsif params[:id] - redirect_to "/wechat/user_activities##{@path}?id=#{params[:id]}",layout: nil and return + render "/wechat/user_activities##{@path}?id=#{params[:id]}",layout: nil and return else - redirect_to "/wechat/user_activities##{@path}",layout: nil and return + render "/wechat/user_activities##{@path}",layout: nil and return end # redirect_to "/wechat/user_activities##{@path}?id=#{params[:id]}" and return end