From 2e86738fd2814244edd437187c4c8c1cc496482c Mon Sep 17 00:00:00 2001 From: yuanke <249218296@qq.com> Date: Mon, 22 Aug 2016 10:42:40 +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 1d0abac39..1deb55d63 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]}" and return + redirect_to "/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]}" and return + redirect_to "/wechat/user_activities##{@path}?id=#{params[:id]}",layout: nil and return else - redirect_to "/wechat/user_activities##{@path}" and return + redirect_to "/wechat/user_activities##{@path}",layout: nil and return end # redirect_to "/wechat/user_activities##{@path}?id=#{params[:id]}" and return end