摘要:
<?php return [ // 默认使用的数据库连接配置 'default' => env('database.driver', 'mysql'), // 自定义时间查询规则 'time_query_rule' => [], // 自动写入时间戳字段 // true为自动识别类型 false关闭 阅读全文
摘要:
<?php use think\facade\Db; use think\facade\Cache; use think\facade\Log; // 应用公共文件 if (!function_exists('JsonMessage')) { function JsonMessage($data = 阅读全文
摘要:
<?php declare(strict_types=1); namespace app\home; use app\lang\SysCode; use app\model\SystemSetting; use think\App; use think\exception\ValidateExcep 阅读全文
摘要:
<?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 阅读全文
摘要:
<?php namespace app\admin; use think\exception\HttpException; /** * 抛出json异常错误 */ class ErrorException extends HttpException { public function __const 阅读全文
摘要:
<?php namespace app\admin; use think\exception\HttpException; /** * 抛出json异常错误 */ class AuthErrorException extends HttpException { public function __c 阅读全文
摘要:
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 // 初始 阅读全文
摘要:
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 阅读全文