change bugs

This commit is contained in:
sylor_huang@126.com 2020-07-09 19:33:02 +08:00
parent 98ec2d0b3c
commit 20ac55a323
1 changed files with 3 additions and 1 deletions

View File

@ -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])