Merge branch 'dev_trustie' into dev_chain

This commit is contained in:
sylor_huang@126.com 2020-07-10 18:12:28 +08:00
commit 2e2b4a9469
1 changed files with 2 additions and 2 deletions

View File

@ -16,9 +16,9 @@ class SyncProjectsJob < ApplicationJob
http.use_ssl = true http.use_ssl = true
response = http.send_request('GET', uri.path, sync_params.to_json, {'Content-Type' => 'application/json'}) response = http.send_request('GET', uri.path, sync_params.to_json, {'Content-Type' => 'application/json'})
SyncLog.sync_log("==========response_status:#{response.status}============") SyncLog.sync_log("==========response_status:#{response.code}============")
SyncLog.sync_log("==========response_body:#{response.body}============") SyncLog.sync_log("==========response_body:#{response.body}============")
if response.status.to_i == 200 if response.code.to_s == "200"
target_jsons = response.body target_jsons = response.body
SyncLog.sync_log("=========target_jsons: #{target_jsons}============") SyncLog.sync_log("=========target_jsons: #{target_jsons}============")
target_jsons = eval(target_jsons) target_jsons = eval(target_jsons)