From 42c6e4c5c50ac14b1ed44aa47d836ded8c14c470 Mon Sep 17 00:00:00 2001 From: yuanke <249218296@qq.com> Date: Mon, 22 Aug 2016 10:26:57 +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 2144e9c2c..1d0abac39 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] - render "/wechat/user_activities##{@path}?id=#{params[:id]}&userid=#{params[:userid]}" and return + redirect_to "/wechat/user_activities##{@path}?id=#{params[:id]}&userid=#{params[:userid]}" and return elsif params[:id] - render "/wechat/user_activities##{@path}?id=#{params[:id]}" and return + redirect_to "/wechat/user_activities##{@path}?id=#{params[:id]}" and return else - render "/wechat/user_activities##{@path}" and return + redirect_to "/wechat/user_activities##{@path}" and return end # redirect_to "/wechat/user_activities##{@path}?id=#{params[:id]}" and return end