From c7c0d8da90bb5673b804c2fb397d1a3ea3232f5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Sat, 7 Mar 2020 01:24:53 +0800 Subject: [PATCH 1/5] true --- public/react/config/webpack.config.prod.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/react/config/webpack.config.prod.js b/public/react/config/webpack.config.prod.js index 596843f5f..1fe7a6c93 100644 --- a/public/react/config/webpack.config.prod.js +++ b/public/react/config/webpack.config.prod.js @@ -326,8 +326,8 @@ module.exports = { comments: false }, compress: { - drop_debugger: false, - drop_console: false + drop_debugger: true, + drop_console: true } } }), From 40b123236e6f27a93ee3c15246ec2ee15abffafe Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Sat, 7 Mar 2020 19:52:43 +0800 Subject: [PATCH 2/5] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E9=9B=86=E9=80=9A?= =?UTF-8?q?=E8=BF=87=E7=9A=84=E4=B8=AA=E6=95=B0=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/hack_user_lastest_codes_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/hack_user_lastest_codes_controller.rb b/app/controllers/hack_user_lastest_codes_controller.rb index 353833ee2..92baa6460 100644 --- a/app/controllers/hack_user_lastest_codes_controller.rb +++ b/app/controllers/hack_user_lastest_codes_controller.rb @@ -72,8 +72,8 @@ class HackUserLastestCodesController < ApplicationController def record_detail @hack_user = HackUserCode.find params[:id] set = HackSet.find_by(id: @hack_user.error_test_set_id) - @pass_set_count = set ? set.position - 1 : 0 @set_count = @hack_user.hack.hack_sets.count + @pass_set_count = set ? set.position - 1 : (@hack_user.status == 0 ? @set_count : 0) @my_hack = @hack_user.hack_user_lastest_code end From ca17555ae1f0e86afeda11bd3159b26c9d3f1928 Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Sat, 7 Mar 2020 20:31:43 +0800 Subject: [PATCH 3/5] 1 --- app/controllers/hack_user_lastest_codes_controller.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/controllers/hack_user_lastest_codes_controller.rb b/app/controllers/hack_user_lastest_codes_controller.rb index 92baa6460..b5ced58a1 100644 --- a/app/controllers/hack_user_lastest_codes_controller.rb +++ b/app/controllers/hack_user_lastest_codes_controller.rb @@ -134,6 +134,7 @@ class HackUserLastestCodesController < ApplicationController end testCases = Base64.encode64(test_sets.to_json) #codeFileContent = Base64.urlsafe_encode64(@my_hack.code) + Rails.logger.info("###########{@my_hack.identifier}: #{@my_hack.code}") debug_params = {execMode: exec_mode, tpiID: @my_hack.identifier, testCases: testCases, From 7a868d3fbceb15c43d015e8aacc63fcbe1f275fc Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Sat, 7 Mar 2020 20:40:48 +0800 Subject: [PATCH 4/5] =?UTF-8?q?=E6=89=93=E5=8D=B0=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/hack_user_lastest_codes_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/hack_user_lastest_codes_controller.rb b/app/controllers/hack_user_lastest_codes_controller.rb index b5ced58a1..6fd52961d 100644 --- a/app/controllers/hack_user_lastest_codes_controller.rb +++ b/app/controllers/hack_user_lastest_codes_controller.rb @@ -134,7 +134,7 @@ class HackUserLastestCodesController < ApplicationController end testCases = Base64.encode64(test_sets.to_json) #codeFileContent = Base64.urlsafe_encode64(@my_hack.code) - Rails.logger.info("###########{@my_hack.identifier}: #{@my_hack.code}") + Rails.logger.info("##########code_#{@my_hack.identifier}: #{@my_hack.code}") debug_params = {execMode: exec_mode, tpiID: @my_hack.identifier, testCases: testCases, From d4d83e800451853cfc159ba1926d41d4663cc9ea Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E6=A0=91=E6=98=8E?= <775174143@qq.com> Date: Sat, 7 Mar 2020 20:57:18 +0800 Subject: [PATCH 5/5] =?UTF-8?q?=E8=B0=83=E6=95=B4oj=E8=AE=BE=E7=BD=AE?= =?UTF-8?q?=E7=9B=B8=E5=85=B3=E6=A0=A1=E9=AA=8Cissue?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../developer/components/initTabCtx/index.js | 7 ++---- .../leftpane/editorTab/AddTestDemo.js | 2 +- .../newOrEditTask/leftpane/editorTab/index.js | 23 +++++++++++++++++-- 3 files changed, 24 insertions(+), 8 deletions(-) diff --git a/public/react/src/modules/developer/components/initTabCtx/index.js b/public/react/src/modules/developer/components/initTabCtx/index.js index 831416fab..3a70f8091 100644 --- a/public/react/src/modules/developer/components/initTabCtx/index.js +++ b/public/react/src/modules/developer/components/initTabCtx/index.js @@ -1,7 +1,7 @@ /* * @Description: 自定义测试化用例 * @Author: tangjiang - * @Github: + * @Github: * @Date: 2019-11-27 19:46:14 * @LastEditors : tangjiang * @LastEditTime : 2019-12-26 20:07:35 @@ -50,11 +50,8 @@ function InitTabCtx (props, ref) { > { getFieldDecorator('input', { - rules: [ - { required: true, message: '输入值不能为空'} - ], initialValue: inputValue - })(