From 831aea8b7353430d69ba920b5fdbd82b8da7d0be Mon Sep 17 00:00:00 2001 From: Jasder <2053003901@@qq.com> Date: Tue, 20 Oct 2020 00:10:29 +0800 Subject: [PATCH] FIX bug --- app/jobs/sync_educoder_shixun_job.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/jobs/sync_educoder_shixun_job.rb b/app/jobs/sync_educoder_shixun_job.rb index e2d0a851d..39dec0a76 100644 --- a/app/jobs/sync_educoder_shixun_job.rb +++ b/app/jobs/sync_educoder_shixun_job.rb @@ -12,7 +12,7 @@ class SyncEducoderShixunJob < ApplicationJob result = JSON.parse(response.body) if result['status'] != 0 - puts.info "======= 接口请求失败!" + puts "======= 接口请求失败!" return end @@ -60,9 +60,9 @@ class SyncEducoderShixunJob < ApplicationJob repo = Repository.new(repo_params) repo.save! - puts.info "项目: #{re['name']} 同步成功" + puts "项目: #{re['name']} 同步成功" else - puts.info "项目: #{re['name']} 同步失败" + puts "项目: #{re['name']} 同步失败" end end end