最新在线工具箱网站系统源码

内容目录


一、详细介绍

系统内置高达72种站长工具、开发工具、娱乐工具等功能。此系统支持本地调用API,同时还自带免费API接口,

是一个多功能性工具程序,支持后台管理、上传插件、添加增减删功能。

环境要求:

PHP >= 7.4

MySQL >= 5.6

fileinfo 扩展

安装教程:

设置运行目录为 public

设置伪静态thinkphp 规则

访问 http://你的域名/install 进行安装

二、效果展示

1.部分代码

代码如下(示例):

php 复制代码
protected function initialize()
    {
        if (in_array(Request::action(), ['oauth', 'callback'])) {
            $this->mode = mb_strtolower(Request::param('mode', 'github'));
            if (!in_array($this->mode, get_enabled_oauth_mode())) {
                abort(400, '不支持该认证方式 ' . Str::studly($this->mode));
            }
            $class = '\\app\\lib\\oauth\\impl\\' . Str::studly($this->mode);
            if (!class_exists($class)) {
                abort(400, '不支持该认证方式 ' . Str::studly($this->mode));
            }
            $this->user = get_user();
            $this->instance = new $class((object)config_get("oauth.$this->mode."), (object)Request::param());
        }
    }


    public function oauth()
    {
        //绑定账号
        if (Request::param('action') === 'bind') {
            $this->user = get_user();
            if (!empty($this->user->oauth[$this->mode])) {
                return $this->callback_view('error', "已绑定,请勿重复绑定");
            }
            Session::set('BindAuth', true);
        }
        return $this->instance->oauth();
    }

2.效果图展示




三、学习资料下载

蓝奏云:https://qumaw.lanzoul.com/iS1ky1tu36oj

相关推荐
ooseabiscuit21 分钟前
Laravel6.x核心优化与特性全解析
android·开发语言·javascript
阿巴斯甜2 小时前
Kotlin 协程 Coroutine
android
Jomurphys2 小时前
Compose 适配 - 通过 UiMediaScope 获取设备信息
android·compose
阿巴斯甜2 小时前
必看12
android
阿巴斯甜2 小时前
必看11
android
solo_993 小时前
Perftto 使用命令添加标签
android
阿巴斯甜3 小时前
必看10
android
阿巴斯甜3 小时前
必看9
android
阿巴斯甜3 小时前
必看6
android
angerdream3 小时前
Android手把手编写儿童手机远程监控App之SQLite详解
android