From 4f8d2791ed31fb69cb4f544e27334b5bde9ba8de Mon Sep 17 00:00:00 2001 From: zhujinyong Date: Tue, 12 Apr 2022 09:12:07 +0800 Subject: [PATCH] * Reset cookie. --- api/v1/entries/testcases.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/v1/entries/testcases.php b/api/v1/entries/testcases.php index 7b680a8a8d..2b4e49bc7e 100644 --- a/api/v1/entries/testcases.php +++ b/api/v1/entries/testcases.php @@ -23,6 +23,9 @@ class testcasesEntry extends entry if(empty($productID)) $productID = $this->param('product', 0); if(empty($productID)) return $this->sendError(400, 'Need product id.'); + $this->app->cookie->caseModule = 0; + $this->app->cookie->caseSuite = 0; + $type = 'all'; $param = 0; $moduleID = $this->param('module', 0);