摘要: 1. 两个适用于文件里有php版本文件 1 @echo off 2 title Skylar development tool 3 set ip=0.0.0.0 4 set local_ip=127.0.0.1 5 set port=10000 6 :start 7 set /a port+=1 8 阅读全文
posted @ 2022-04-13 11:01 糖粿 阅读(44) 评论(0) 推荐(0) 编辑
摘要: 1 <?php 2 3 namespace app; 4 5 use app\admin\AuthErrorException; 6 use app\admin\ErrorException; 7 use app\home\NotFoundException; 8 use app\model\Sys 阅读全文
posted @ 2022-04-13 10:37 糖粿 阅读(41) 评论(0) 推荐(0) 编辑
摘要: 1 <?php 2 // + 3 // | 应用设置 4 // + 5 6 return [ 7 // 应用地址 8 'app_host' => env('app.host', ''), 9 // 应用的命名空间 10 'app_namespace' => '', 11 // 是否启用路由 12 ' 阅读全文
posted @ 2022-04-13 10:36 糖粿 阅读(205) 评论(0) 推荐(0) 编辑
摘要: 1 <?php 2 3 return [ 4 // 默认磁盘 5 'default' => env('filesystem.driver', 'local'), 6 // 磁盘列表 7 'disks' => [ 8 'local' => [ 9 'type' => 'local', 10 'root 阅读全文
posted @ 2022-04-13 10:34 糖粿 阅读(66) 评论(0) 推荐(0) 编辑
摘要: 1 <?php 2 // + 3 // | 多语言设置 4 // + 5 6 return [ 7 // 默认语言 8 'default_lang' => env('lang.default_lang', 'zh-cn'), 9 // 允许的语言列表 10 'allow_lang_list' => 阅读全文
posted @ 2022-04-13 10:34 糖粿 阅读(117) 评论(0) 推荐(0) 编辑
摘要: <?php return [ 'app_key' => '0e8ee451d557e99e3x', 'app_secret' => 'f45df6919f31d564d52bdf2657ac8e20x', 'host' => env('DOMAIN.UCENTER', 'http://xxx.sky 阅读全文
posted @ 2022-04-13 10:32 糖粿 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 1 APP_DEBUG = true 2 APP_ENV = dev 3 ALLOW_CROSS_DOMAIN = 127.0.0.1,localhost 4 5 [APP] 6 DEFAULT_TIMEZONE = Asia/Shanghai 7 NAME = xxxx监管平台 8 9 [DATA 阅读全文
posted @ 2022-04-13 10:30 糖粿 阅读(172) 评论(0) 推荐(0) 编辑
摘要: <?php return [ // 默认使用的数据库连接配置 'default' => env('database.driver', 'mysql'), // 自定义时间查询规则 'time_query_rule' => [], // 自动写入时间戳字段 // true为自动识别类型 false关闭 阅读全文
posted @ 2022-04-13 10:26 糖粿 阅读(365) 评论(0) 推荐(0) 编辑
摘要: <?php use think\facade\Db; use think\facade\Cache; use think\facade\Log; // 应用公共文件 if (!function_exists('JsonMessage')) { function JsonMessage($data = 阅读全文
posted @ 2022-04-13 10:24 糖粿 阅读(92) 评论(0) 推荐(0) 编辑
摘要: <?php declare(strict_types=1); namespace app\home; use app\lang\SysCode; use app\model\SystemSetting; use think\App; use think\exception\ValidateExcep 阅读全文
posted @ 2022-04-13 10:20 糖粿 阅读(52) 评论(0) 推荐(0) 编辑
摘要: <?php namespace app\home; use app\model\AdminNode; use app\model\Cases; use app\model\Illegal; use think\facade\View; use app\model\AdminUser; class A 阅读全文
posted @ 2022-04-13 10:20 糖粿 阅读(53) 评论(0) 推荐(0) 编辑
摘要: <?php namespace app\admin; use think\exception\HttpException; /** * 抛出json异常错误 */ class ErrorException extends HttpException { public function __const 阅读全文
posted @ 2022-04-13 10:18 糖粿 阅读(20) 评论(0) 推荐(0) 编辑
摘要: <?php namespace app\admin; use think\exception\HttpException; /** * 抛出json异常错误 */ class AuthErrorException extends HttpException { public function __c 阅读全文
posted @ 2022-04-13 10:17 糖粿 阅读(38) 评论(0) 推荐(0) 编辑
摘要: 1 <?php 2 3 4 namespace app\admin; 5 6 use app\model\AdminNode; 7 use think\facade\View; 8 9 class AuthController extends BaseController 10 { 11 // 初始 阅读全文
posted @ 2022-04-13 10:16 糖粿 阅读(51) 评论(0) 推荐(0) 编辑
摘要: 1 <?php 2 declare (strict_types = 1); 3 4 namespace app\admin; 5 6 use think\App; 7 use think\exception\ValidateException; 8 use think\Validate; 9 10 阅读全文
posted @ 2022-04-13 10:14 糖粿 阅读(30) 评论(0) 推荐(0) 编辑