From 339c4d46a77e0a859644a0f7c1ce812fb92c922c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=9F=E5=93=B2=E7=A7=91=E6=8A=80?= Date: Thu, 2 Jul 2020 22:54:44 +0800 Subject: [PATCH] =?UTF-8?q?update=20library/think/db/Query.php.=20php7.4?= =?UTF-8?q?=E7=8E=AF=E5=A2=83=E4=B8=8B=E6=8A=A5=E9=94=99=EF=BC=8C=E4=B8=8D?= =?UTF-8?q?=E6=94=AF=E6=8C=81=E7=94=A8{}=E6=9D=A5=E5=8F=96=E6=95=B0?= =?UTF-8?q?=E7=BB=84|=E5=AD=97=E7=AC=A6=E4=B8=B2=E7=9A=84=E5=81=8F?= =?UTF-8?q?=E7=A7=BB=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/db/Query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/db/Query.php b/library/think/db/Query.php index 310ac659..c4cf0a24 100644 --- a/library/think/db/Query.php +++ b/library/think/db/Query.php @@ -585,7 +585,7 @@ class Query $seq = (ord(substr($type($value), 0, 1)) % $rule['num']) + 1; } else { // 按照字段的首字母的值分表 - $seq = (ord($value{0}) % $rule['num']) + 1; + $seq = (ord($value[0]]) % $rule['num']) + 1; } } return $this->getTable() . '_' . $seq; -- Gitee