Browse Source

Merge branch 'dev_trustie' into dev_chain

tags/v1.0.0
sylor_huang@126.com 6 years ago
parent
commit
bfb437ae3e
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      app/jobs/sync_projects_job.rb

+ 3
- 2
app/jobs/sync_projects_job.rb View File

@@ -16,11 +16,12 @@ class SyncProjectsJob < ApplicationJob
http.use_ssl = true
response = http.send_request('GET', uri.path, sync_params.to_json, {'Content-Type' => 'application/json'})

SyncLog.sync_log("==========response_status::#{response.code}:::#{response.code == '200'}============")
SyncLog.sync_log("==========response_body:#{response.body}============")
SyncLog.sync_log("==========response_status::#{response.code}============")
if response.code == '200'
target_jsons = response.body
if sync_params[:type] == "Project"
SyncLog.sync_log("==========target_jsons: #{target_jsons}============")
SyncLog.sync_log("==========eval_target_jsons: #{eval(target_jsons)}============")
SyncLog.sync_log("==========targets_params: #{target_jsons[:targets_params]}============")
update_new_project(target_jsons[:targets_params][0], sync_params[:new_project_id])
else


Loading…
Cancel
Save