Browse Source

fixed bot安装log

pull/342/head
xxq250 3 years ago
parent
commit
04c30be5a6
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      app/controllers/installations_controller.rb

+ 1
- 0
app/controllers/installations_controller.rb View File

@@ -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…
Cancel
Save