From 65205a6fc2e52d4f0e4f528ea860151be681e77c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Thu, 17 Sep 2020 19:23:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- System/Abstracts/Pool.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/System/Abstracts/Pool.php b/System/Abstracts/Pool.php index 5b8c54a7..a0fdf300 100644 --- a/System/Abstracts/Pool.php +++ b/System/Abstracts/Pool.php @@ -58,7 +58,11 @@ abstract class Pool extends Component */ public function name($cds, $isMaster = false) { - return md5($cds . ($isMaster ? 'master' : 'slave')); + if ($isMaster === true) { + return hash('sha256',$cds . 'master'); + } else { + return hash('sha256',$cds . 'slave'); + } }