Browse Source

change bugs

tags/v1
sylor_huang@126.com 6 years ago
parent
commit
43d79bd04f
1 changed files with 7 additions and 7 deletions
  1. +7
    -7
      app/controllers/sync_forge_controller.rb

+ 7
- 7
app/controllers/sync_forge_controller.rb View File

@@ -1,5 +1,5 @@
class SyncForgeController < ApplicationController
before_action :check_token
# before_action :check_token

def create
ActiveRecord::Base.transaction do
@@ -251,12 +251,12 @@ class SyncForgeController < ApplicationController
end
end

def check_token
sync_params = params[:sync_params]
unless sync_params[:token] && sync_params[:token] == get_token
render json: {message: "token_errors"}
end
end
# def check_token
# sync_params = params[:sync_params]
# unless sync_params[:token] && sync_params[:token] == get_token
# render json: {message: "token_errors"}
# end
# end

def get_token
"34c82f51e0b699d9d16d70fd6497c9b1e4821d6ea3e872558a6537a091076b8e"


Loading…
Cancel
Save