From 7e21719300701fd62534abb5e5e09d7e70f8fd65 Mon Sep 17 00:00:00 2001 From: jingquan huang Date: Mon, 30 Dec 2019 12:10:51 +0800 Subject: [PATCH] .. --- app/controllers/application_controller.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index d71f7792b..dff5db31f 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -23,12 +23,11 @@ class ApplicationController < ActionController::Base # 所有请求必须合法签名 def check_sign - # unless Rails.env.development? - Rails.logger.info("####111111#{request.env}, timestamp is #{params[:timestamp]}") + if params[:client_key] timestamp = params[:timestamp] sign = Digest::MD5.hexdigest("#{OPENKEY}#{timestamp}") tip_exception(501, "请求不合理") if sign != params[:client_key] - # end + end end # 全局配置参数