From 20ac55a3232b384d0eedd70121c99ac538e17ceb Mon Sep 17 00:00:00 2001 From: "sylor_huang@126.com" Date: Thu, 9 Jul 2020 19:33:02 +0800 Subject: [PATCH] change bugs --- app/controllers/sync_forge_controller.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/controllers/sync_forge_controller.rb b/app/controllers/sync_forge_controller.rb index 4674e3d33..2e1e29953 100644 --- a/app/controllers/sync_forge_controller.rb +++ b/app/controllers/sync_forge_controller.rb @@ -3,8 +3,10 @@ class SyncForgeController < ApplicationController def create sync_params = params["sync_params"] + Rails.logger.info("========sync_params=1==#{params["sync_params"]}====") + Rails.logger.info("========sync_params=2==#{params[:sync_params]}====") + sync_params = eval(sync_params) - Rails.logger.info("========sync_params===#{sync_params}====") #以前已同步的项目,那么肯定存在仓库 if Project.exists?(id: sync_params[:id], identifier: sync_params[:identifier])