diff --git a/application/admin/model/AuthRule.php b/application/admin/model/AuthRule.php index 9a69b8b4fa56291aaa6e3b646c95f4e013f1c481..4c37c590fbc81750ab747c3e69cb040c88d496c6 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 dac88a6caf7726971ced54237c3e8260a4d635f9..832e56daf5fc91dd38deab1e3b76dc9805f871f0 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": "*",