change bugs

This commit is contained in:
sylor_huang@126.com 2020-07-14 21:20:43 +08:00
parent b48812bc79
commit 43d79bd04f
1 changed files with 7 additions and 7 deletions

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"