sign系列问题

dev_cxt
jingquan huang 5 years ago
parent 1587ddf838
commit 5857e33564

@ -23,8 +23,7 @@ class ApplicationController < ActionController::Base
# 所有请求必须合法签名
def check_sign
Rails.logger.info("111111#{params[:client_key]}")
if params[:client_key]
unless params[:client_key]
Rails.logger.info("111111#{params[:client_key]}")
timestamp = params[:timestamp]
sign = Digest::MD5.hexdigest("#{OPENKEY}#{timestamp}")

Loading…
Cancel
Save