From ec55e106a15187b2dd70166779623e99c94ab9e5 Mon Sep 17 00:00:00 2001 From: meriodas Date: Tue, 3 Mar 2026 09:36:21 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0overtrue/pinyin=20=E5=88=B0^6?= =?UTF-8?q?.0(2025-09-08)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- application/admin/model/AuthRule.php | 6 +++++- composer.json | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/application/admin/model/AuthRule.php b/application/admin/model/AuthRule.php index 9a69b8b4..4c37c590 100644 --- a/application/admin/model/AuthRule.php +++ b/application/admin/model/AuthRule.php @@ -16,7 +16,11 @@ class AuthRule extends Model // 数据自动完成字段 protected $insert = ['py', 'pinyin']; protected $update = ['py', 'pinyin']; - // 拼音对象 + + /** + * 拼音对象 + * @var \Overtrue\Pinyin\Pinyin|null + */ protected static $pinyin = null; protected static function init() diff --git a/composer.json b/composer.json index dac88a6c..832e56da 100755 --- a/composer.json +++ b/composer.json @@ -23,7 +23,7 @@ "topthink/think-helper": "^1.0.7", "fastadminnet/fastadmin-addons": "~1.4.3", "fastadminnet/fastadmin-mailer": "^2.1.1", - "overtrue/pinyin": "^3.0", + "overtrue/pinyin": "^6.0", "phpoffice/phpspreadsheet": "^1.29.11", "overtrue/wechat": "^5.36.3", "ext-json": "*", -- Gitee