From b1156b71a3ff43979bdcf5ff8a4b39f10b691e30 Mon Sep 17 00:00:00 2001 From: weigang Date: Tue, 11 Aug 2020 12:57:08 +0800 Subject: [PATCH] =?UTF-8?q?Token=20name=E8=87=AA=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Service/ParamsTokenSsdbService.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/Service/ParamsTokenSsdbService.php b/app/Service/ParamsTokenSsdbService.php index 65bd113..8aa60e2 100644 --- a/app/Service/ParamsTokenSsdbService.php +++ b/app/Service/ParamsTokenSsdbService.php @@ -26,7 +26,7 @@ class ParamsTokenSsdbService implements ParamsTokenServiceInterface */ public function generate($params) { - $token = md5(json_encode($params)); + $token = $params['token_name'] ?? md5(json_encode($params)); $ssdb = ApplicationContext::getContainer()->get(SSDBTask::class);