composer安装
composer require topthink/think-throttle
安装后会自动为项目生成 config/throttle.php
配置文件
根据自己的需求修改配置文件
修改请求方式和请求时间次数
修改提示语句
在路由中加后缀
composer require topthink/think-throttle
config/throttle.php
配置文件
在路由中加后缀