From 7515c93df4d51a206b701675dd6aa2a3feeb345a Mon Sep 17 00:00:00 2001 From: polaris <1688609@gmail.com> Date: Fri, 3 Jan 2020 09:44:41 +0800 Subject: [PATCH] fix --- src/Lock/Lock.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Lock/Lock.php b/src/Lock/Lock.php index c3044cf..7f85887 100644 --- a/src/Lock/Lock.php +++ b/src/Lock/Lock.php @@ -3,7 +3,7 @@ namespace Jcsp\Cache\Lock; use Jcsp\Cache\Exception\LockTimeoutException; -use Jcsp\Core\Helper\Str; +use Swoft\Stdlib\Helper\StringHelper; abstract class Lock implements LockContract { @@ -37,7 +37,7 @@ abstract class Lock implements LockContract public function reset($name, $seconds, $owner):void { if ($owner === '') { - $owner = Str::random(); + $owner = StringHelper::random(); } $this->name = $name;