fixed bot安装log
This commit is contained in:
parent
e18063d7ca
commit
04c30be5a6
|
@ -112,6 +112,7 @@ class InstallationsController < ApplicationController
|
|||
header = request.authorization
|
||||
pattern = /^Bearer /i
|
||||
token = header.gsub(pattern, "")
|
||||
Rails.logger.info("request.authorization==#{request.authorization}")
|
||||
decoded_token = JWT.decode token, nil, false
|
||||
# 前面已验证token有效期和正确性
|
||||
decoded_token[0]["iss"]
|
||||
|
|
Loading…
Reference in New Issue