1 Star 0 Fork 0

LeroiLiu / mc-think-help

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

初始化

  • 复制tpl/config下的文件至项目的config目录下,或进行覆盖
  • 复制tpl/.env.example至项目根目录,并改名为:.env
  • app/ExceptionHandle.php中修改render方法如下:
    public function render($request, Throwable $e): Response
    {
        // 添加自定义异常处理机制
        if (get_class($e)==="MicroCyan\ThinkHelp\Exception\NotLoginException"){
            return json_error($e->getMessage(),[],501);
        }
        if (!env('app_debug')){
            return json_error($e->getMessage(),'error');
        }
        // 其他错误交给系统处理
        return parent::render($request, $e);
    }

空文件

简介

TP的辅助工具 展开 收起
PHP 等 2 种语言
取消

贡献者

全部

近期动态

加载更多
不能加载更多了
1
https://gitee.com/leroiliu/mc-think-help.git
git@gitee.com:leroiliu/mc-think-help.git
leroiliu
mc-think-help
mc-think-help
master

搜索帮助

53164aa7 5694891 3bd8fe86 5694891