12345678910111213141516171819202122232425262728293031323334 |
- <?php
-
-
-
-
-
-
-
-
-
-
- namespace app\admin\Model;
-
- use think\Model;
- use think\facade\Cache;
-
-
- class AuthRule extends Model
- {
- const RULE_URL = 1;
- const RULE_MAIN = 2;
-
-
- protected $autoWriteTimestamp = true;
-
- protected static function init()
- {
- self::afterWrite(function ($row) {
- Cache::rm('__menu__');
- });
- }
- }
|