12 2022 档案
摘要:/** * 通过数据库的方式递归查询当前分类ID的所有子分类ID * @param $id * @return array * @throws DataNotFoundException * @throws DbException * @throws ModelNotFoundException *
阅读全文
摘要:/** * 通过数据库递归的方式查找当前分类ID的所有上级ID * @throws ModelNotFoundException * @throws DbException * @throws DataNotFoundException */ public function findAllParen
阅读全文
摘要:thinkphp/library/think/route/Rule.php 第794行,增加这段代码: elseif (is_array($route) && count($route) == 2) { $result = $this->dispatchMethod($request, $route
阅读全文
摘要:企业微信群机器人说明文档:https://developer.work.weixin.qq.com/document/path/91770。利用群机器人有个优点,在程序哪里经常抛出异常,就可以在第一时间知道。 Python3: import json import requests from dat
阅读全文
摘要:首先: composer require topthink/think-captcha v3.0.8 把这张图片下载,后缀名png改成zip,解压到: vendor/topthink
阅读全文
摘要:composer require topthink/think-filesystem
阅读全文
摘要:^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d
阅读全文
摘要:首先开启多应用的方法: composer require topthink/think-multi-app 定义路由: <?php use think\facade\Route; Route::any('/user/login', '\\app\\index\\controller\\User@lo
阅读全文