From 1931d0b60470cb52207cbc36feb27c04e7ed30a4 Mon Sep 17 00:00:00 2001 From: zhability Date: Tue, 19 May 2020 23:05:31 +0800 Subject: [PATCH] =?UTF-8?q?update=20extend/lemo/helper/StringHelper.php.?= =?UTF-8?q?=20=E4=BF=AE=E6=AD=A3=E4=BA=86=E5=9C=A8PHP7.4=E4=B8=8A=E9=83=A8?= =?UTF-8?q?=E7=BD=B2=E5=AF=BC=E8=87=B4=E6=97=A0=E6=B3=95=E6=AD=A3=E5=B8=B8?= =?UTF-8?q?=E7=99=BB=E5=BD=95=E5=90=8E=E5=8F=B0=E7=AD=89=E9=97=AE=E9=A2=98?= =?UTF-8?q?=EF=BC=88=E5=9B=A0=E4=B8=BAPHP7.4=E5=8F=8A=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E7=89=88=E6=9C=AC=E4=B8=AD=E4=B8=8D=E5=86=8D=E8=83=BD=E5=A4=9F?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=E8=8A=B1=E6=8B=AC=E5=8F=B7=E6=9D=A5=E8=AE=BF?= =?UTF-8?q?=E9=97=AE=E6=95=B0=E7=BB=84=E6=88=96=E8=80=85=E5=AD=97=E7=AC=A6?= =?UTF-8?q?=E4=B8=B2=E7=9A=84=E5=81=8F=E7=A7=BB=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extend/lemo/helper/StringHelper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extend/lemo/helper/StringHelper.php b/extend/lemo/helper/StringHelper.php index b3b159e..fa361f6 100644 --- a/extend/lemo/helper/StringHelper.php +++ b/extend/lemo/helper/StringHelper.php @@ -133,7 +133,7 @@ class StringHelper $code = ''; $strlen = strlen($string) -1; for($i = 0; $i < $length; $i++){ - $code .= $string{mt_rand(0, $strlen)}; + $code .= $string[mt_rand(0, $strlen)]; } if(!empty($convert)){ $code = ($convert > 0)? strtoupper($code) : strtolower($code); -- Gitee