REAPI/app/admin/route/demo.php
b3f70a8d30 feat(queue): 新增临时锁卡任务
- 添加 LinSuoKa 类实现临时锁卡功能
- 优化卡密订单关联逻辑,处理状态为 4 的订单- 新增 redis 记录订单详情,用于限单和退款处理
- 修改 Qiling 类中的签名生成逻辑
- 更新 Test 控制器中的 test_ts 方法,增加对不同订单表的处理
2025-06-03 18:55:03 +08:00

52 lines
2.6 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
// +----------------------------------------------------------------------
// | Admin Plugin for ThinkAdmin
// +----------------------------------------------------------------------
// | 版权所有 2014~2025 ThinkAdmin [ thinkadmin.top ]
// +----------------------------------------------------------------------
// | 官方网站: https://thinkadmin.top
// +----------------------------------------------------------------------
// | 开源协议 ( https://mit-license.org )
// | 免责声明 ( https://thinkadmin.top/disclaimer )
// +----------------------------------------------------------------------
// | gitee 代码仓库https://gitee.com/zoujingli/think-plugs-admin
// | github 代码仓库https://github.com/zoujingli/think-plugs-admin
// +----------------------------------------------------------------------
use think\admin\Library;
use think\admin\service\RuntimeService;
/*! 演示环境禁止操作路由绑定 */
if (RuntimeService::check('demo')) {
Library::$sapp->route->post('index/pass', static function () {
return json(['code' => 0, 'info' => lang('演示环境禁止修改用户密码!')]);
});
Library::$sapp->route->post('config/system', static function () {
return json(['code' => 0, 'info' => lang('演示环境禁止修改系统配置!')]);
});
Library::$sapp->route->post('config/storage', static function () {
return json(['code' => 0, 'info' => lang('演示环境禁止修改系统配置!')]);
});
Library::$sapp->route->post('menu', static function () {
return json(['code' => 0, 'info' => lang('演示环境禁止给菜单排序!')]);
});
Library::$sapp->route->post('menu/index', static function () {
return json(['code' => 0, 'info' => lang('演示环境禁止给菜单排序!')]);
});
Library::$sapp->route->post('menu/add', static function () {
return json(['code' => 0, 'info' => lang('演示环境禁止添加菜单!')]);
});
Library::$sapp->route->post('menu/edit', static function () {
return json(['code' => 0, 'info' => lang('演示环境禁止编辑菜单!')]);
});
Library::$sapp->route->post('menu/state', static function () {
return json(['code' => 0, 'info' => lang('演示环境禁止禁用菜单!')]);
});
Library::$sapp->route->post('menu/remove', static function () {
return json(['code' => 0, 'info' => lang('演示环境禁止删除菜单!')]);
});
Library::$sapp->route->post('user/pass', static function () {
return json(['code' => 0, 'info' => lang('演示环境禁止修改密码!')]);
});
}