后台:错误修改

This commit is contained in:
2025-08-26 16:33:55 +08:00
parent 2011ed597b
commit 749a5da438

View File

@@ -21,7 +21,7 @@ class AuthRule extends Model
protected static function init() protected static function init()
{ {
// self::$pinyin = new \Overtrue\Pinyin\Pinyin('Overtrue\Pinyin\MemoryFileDictLoader'); self::$pinyin = new \Overtrue\Pinyin\Pinyin('Overtrue\Pinyin\MemoryFileDictLoader');
self::beforeWrite(function ($row) { self::beforeWrite(function ($row) {
if (isset($_POST['row']) && is_array($_POST['row']) && isset($_POST['row']['condition'])) { if (isset($_POST['row']) && is_array($_POST['row']) && isset($_POST['row']['condition'])) {