Browse Source

change bugs

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

+ 3
- 1
app/controllers/sync_forge_controller.rb 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])


Loading…
Cancel
Save