摘要: <?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) 编辑
摘要: form表单提交的数组 期望的效果(横向为一组) 附代码: 1 $list = input('list/a'); 2 if ( $list ) { 3 $update = $spec = []; 4 //规格 5 foreach ( $list as $k=>$v ) { 6 foreach ( $ 阅读全文
posted @ 2021-12-29 11:27 糖粿 阅读(31) 评论(0) 推荐(0) 编辑
摘要: <?php use think\facade\Db; use think\facade\Cache; use think\facade\Log; if (!function_exists('JsonMessage')) { function JsonMessage($data = [], $http 阅读全文
posted @ 2021-08-11 15:18 糖粿 阅读(45) 评论(0) 推荐(0) 编辑