From ba0d5b370412be8348fd791c883de5136450b6e2 Mon Sep 17 00:00:00 2001 From: liugang Date: Thu, 17 Aug 2023 10:35:03 +0800 Subject: [PATCH] + testcase: add a prefix to avoid duplication with the scene ID. --- module/testcase/control.php | 1 + 1 file changed, 1 insertion(+) diff --git a/module/testcase/control.php b/module/testcase/control.php index 30f5bb4100..22c62ab464 100644 --- a/module/testcase/control.php +++ b/module/testcase/control.php @@ -210,6 +210,7 @@ class testcase extends control $cases = $this->loadModel('story')->checkNeedConfirm($cases); foreach($cases as $case) { + $case->id = 'case_' . $case->id; // Add a prefix to avoid duplication with the scene ID. $case->parent = 0; $case->grade = 1; $case->path = ',' . $case->id . ',';