From 24881fa282017aaecda9b5136f503c0ae35d5267 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Wed, 22 May 2019 17:42:21 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=84=E6=B5=8B=E8=BF=98=E5=8E=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/myshixuns_controller.rb | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/app/controllers/myshixuns_controller.rb b/app/controllers/myshixuns_controller.rb index 89ef1d84..b1ac0073 100644 --- a/app/controllers/myshixuns_controller.rb +++ b/app/controllers/myshixuns_controller.rb @@ -497,18 +497,19 @@ class MyshixunsController < ApplicationController resubmit = jsonTestDetails['resubmit'] outPut = tran_base64_decode64(jsonTestDetails['outPut']) jenkins_testsets = jsonTestDetails['msg'] - # 创建pod的状态 0 失败 1 成功 - create_pod_status = jsonTestDetails['createPodStatus'] - # 克隆代码的装填 0 失败 1 成功 - clone_code_status = jsonTestDetails['downloadStatus'] - # 1表示编译成功;0 表示运行异常; -1 表示克隆代码失败; -2 表示创建pod失败 - compile_success = if clone_code_status == "0" - -1 - elsif create_pod_status == "0" - -2 - else - jsonTestDetails['compileSuccess'] - end + compile_success = jsonTestDetails['compileSuccess'] + # # 创建pod的状态 0 失败 1 成功 + # create_pod_status = jsonTestDetails['createPodStatus'] + # # 克隆代码的装填 0 失败 1 成功 + # clone_code_status = jsonTestDetails['downloadStatus'] + # # 1表示编译成功;0 表示运行异常; -1 表示克隆代码失败; -2 表示创建pod失败 + # compile_success = if clone_code_status == "0" + # -1 + # elsif create_pod_status == "0" + # -2 + # else + # jsonTestDetails['compileSuccess'] + # end # message = Base64.decode64(params[:msg]) unless params[:msg].blank? logger.info(outPut) game = Game.find(game_id)