开发环境

dev_cxt
cxt 5 years ago
parent 93b58cdd87
commit 95d07f7ca9

@ -23,9 +23,11 @@ class ApplicationController < ActionController::Base
# 所有请求必须合法签名
def check_sign
timestamp = params[:timestamp]
sign = Digest::MD5.hexdigest("#{OPENKEY}#{timestamp}")
tip_exception(501, "请求不合理") if sign != params[:client_key]
unless Rails.env.development?
timestamp = params[:timestamp]
sign = Digest::MD5.hexdigest("#{OPENKEY}#{timestamp}")
tip_exception(501, "请求不合理") if sign != params[:client_key]
end
end
# 全局配置参数

Loading…
Cancel
Save