上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 29 下一页
摘要: tp5 链式操作中fetchSql(true)方法不执行sql 只返回生成的sql语句,用处比较广,比较常用 阅读全文
posted @ 2021-06-02 18:07 Beautytoloveme 阅读(359) 评论(0) 推荐(0) 编辑
摘要: 转载 https://blog.csdn.net/sunyinggang/article/details/78906048 阅读全文
posted @ 2021-05-26 11:42 Beautytoloveme 阅读(39) 评论(0) 推荐(0) 编辑
摘要: 转载: https://feifei.blog.csdn.net/article/details/108226656 阅读全文
posted @ 2021-05-26 11:37 Beautytoloveme 阅读(85) 评论(0) 推荐(0) 编辑
摘要: 转载:http://www.02405.com/program/php/1657.html 在php中出现Using $this when not in object context的原因是在静态方法中使用$this或者直接调用非静态的方法。 错误代码1: //thinkphp 模型类 class 阅读全文
posted @ 2021-05-26 10:31 Beautytoloveme 阅读(856) 评论(0) 推荐(0) 编辑
摘要: fastadmin API控制器基类 位置: 项目->application->common->controller->Api.php 代码: <?php namespace app\common\controller; use app\common\library\Auth; use think\ 阅读全文
posted @ 2021-05-25 15:40 Beautytoloveme 阅读(632) 评论(0) 推荐(0) 编辑
摘要: 介绍: https://blog.csdn.net/u014532717/article/details/56015077 <?php function nowamagic($a,$b) { echo $a; echo $b; } call_user_func('nowamagic', "111", 阅读全文
posted @ 2021-05-25 14:44 Beautytoloveme 阅读(39) 评论(0) 推荐(0) 编辑
摘要: 代码: $userid = $this->auth->id; var_dump(empty($userid)); var_dump(empty($this->auth->id)); //用户登录 if(empty($this->auth->id)){ return sys_return( \app\ 阅读全文
posted @ 2021-05-24 10:26 Beautytoloveme 阅读(45) 评论(0) 推荐(0) 编辑
摘要: git add .时报错 解决办法: 先执行看值为何,如果为false 或者input 试着改为true 在执行git add . git config core.autocrlf 然后提交 报错,再把他改为false 再添加 成功了,看来报LF错误时这个core.autocrlf值要改来改去 阅读全文
posted @ 2021-05-20 11:19 Beautytoloveme 阅读(35) 评论(0) 推荐(0) 编辑
摘要: 原文链接:https://blog.csdn.net/haoaiqian/article/details/78284337 开发时,对于本地的项目中修改不做保存操作(或代码改崩),可以用到Git pull的强制覆盖,具体代码如下: git fetch --all git reset --hard o 阅读全文
posted @ 2021-05-20 10:08 Beautytoloveme 阅读(1988) 评论(0) 推荐(0) 编辑
摘要: 多年前的一个小项目,放在服务器上被别人注入代码,判断为xss攻击。 然后用这个漏洞去寻找项目,发现有一个有同样错误。 解决办法:在tp5配置文件中加入全局过滤方法 // 默认全局过滤方法 用逗号分隔多个 'default_filter' => 'htmlentities', 阅读全文
posted @ 2021-05-19 09:39 Beautytoloveme 阅读(494) 评论(0) 推荐(0) 编辑
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 29 下一页