摘要: 一、安装think-auth composer require 5ini99/think-auth 二、数据表 -- -- think_auth_rule,规则表, -- id:主键,name:规则唯一标识, title:规则中文名称 status 状态:为1正常,为0禁用,condition:规则 阅读全文
posted @ 2024-02-02 15:38 样子2018 阅读(16) 评论(0) 推荐(0) 编辑
摘要: 一、创建控制器 <?php namespace app\common\taglib; use think\auth\Auth; use think\template\TagLib; class MyTag extends TagLib { protected $tags = [ 'auth' => 阅读全文
posted @ 2024-02-02 15:17 样子2018 阅读(15) 评论(0) 推荐(0) 编辑