From dd9eedd93bfa9955cab37745754be989749f808e Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Mon, 18 Nov 2019 19:12:20 +0800 Subject: [PATCH] 1 --- app/controllers/application_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index c3c66c114..1bc2bad7d 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -425,8 +425,8 @@ class ApplicationController < ActionController::Base req.body = params.to_json http.request(req) end - uid_logger_dubug("--uri_exec: .....res is #{res}") - res = JSON.parse(res) + uid_logger_dubug("--uri_exec: .....res is #{res.body}") + res = JSON.parse(res.body) if (res && res['code'] != 0) tip_exception(status, message) else