摘要: ``` public function checkMobile($token) { $data['loginToken'] = $token; $data['exID'] = '';//我的默认为空 $data = json_encode($data); $url = 'https://api.ve 阅读全文
posted @ 2023-07-14 14:52 IUser 阅读(27) 评论(0) 推荐(0) 编辑
摘要: hasone 一对一 正向关联:在主表模型中写与副表的关联方法 表结构 user_basic 副表 uid,name,city,idcard user 主表 uid,name,lastLogintime UserModel //foreignKey 外键 指的是 UserBasic 表与user表对 阅读全文
posted @ 2022-11-20 22:59 IUser 阅读(78) 评论(0) 推荐(0) 编辑
摘要: 文章原文 : 这里主要做记录 https://www.cnblogs.com/zhangcheng001/p/12143585.html 无限级分类 public static function getList($pid = 0, &$result = [], $blank = 0) { $res 阅读全文
posted @ 2022-11-18 09:44 IUser 阅读(16) 评论(0) 推荐(0) 编辑
摘要: Options +FollowSymlinks -Multiviews RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index. 阅读全文
posted @ 2022-11-17 09:51 IUser 阅读(26) 评论(0) 推荐(0) 编辑
摘要: tp6 设置简单报错 env 文件设置 APP_DEBUG = false config/app.php 文件设置 // 显示错误信息 'show_error_msg' => true, 阅读全文
posted @ 2022-11-12 10:01 IUser 阅读(41) 评论(0) 推荐(0) 编辑
摘要: <?php //针对参数类型开启严格模式,进行数据类型检验 declare (strict_types = 1); namespace app\validate; use think\Validate; class User extends Validate { //定义规则 protected $ 阅读全文
posted @ 2022-11-09 19:58 IUser 阅读(223) 评论(0) 推荐(0) 编辑
摘要: phpstorm 设置web浏览器和预览 然后在终端中输入 php think run -H api.tp6.com(指定域名) php think run 也是可以的 然后双击网址即可在谷歌浏览器中看到 阅读全文
posted @ 2022-11-07 14:27 IUser 阅读(479) 评论(0) 推荐(0) 编辑
摘要: sublime4 php 格式化代码 摁ctrl+shift+p, 在弹出框中输入 Install package 输入 codeformatter并安装该插件 安装好了之后重新启动sublime 然后依次选择首选项-> Package Settings-> CodeFormatter->Seeti 阅读全文
posted @ 2022-06-14 20:20 IUser 阅读(287) 评论(0) 推荐(0) 编辑
摘要: 必备安装软件 1. typora 最后的免费版本 (markdown编辑器 ) 下载链接: https://www.aliyundrive.com/s/UBS6G3wukSM 2. 小皮面板 (php集成环境) 下载链接: https://www.xp.cn/download.html 3. sub 阅读全文
posted @ 2022-06-07 14:35 IUser 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 下载 HTMLPurifier github地址:https://github.com/ezyang/htmlpurifier 并与public同层级 function removeXSS($data) { require_once './HtmlPurifier/HTMLPurifier.auto 阅读全文
posted @ 2022-02-10 11:58 IUser 阅读(186) 评论(0) 推荐(0) 编辑