![](https://img-blog.csdnimg.cn/20201014180756916.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
php
hush_emo
这个作者很懒,什么都没留下…
展开
-
thinkphp 6.0版本更新至6.1后:‘think\facade\Filesystem‘ not found 问题解决方案
thinkphp 6.0->6.1 'think\facade\Filesystem' not found 问题解决方案原创 2022-12-29 18:27:19 · 1555 阅读 · 2 评论 -
php 7 微信推送消息aes加解密 openssl_decrypt() 代替 mcrypt_module_open() 方法
原加密代码: //获得16位随机字符串,填充到明文之前 $random = $this->getRandomStr(); $text = $random . pack("N", strlen($text)) . $text . $appid; // 网络字节序 $size = mcrypt_get_block_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_CBC); $module = mcrypt_module_open(MCRYPT_RIJNDAEL_128, '',转载 2022-01-05 18:00:08 · 412 阅读 · 0 评论 -
git使用篇,持续更新
常用命令 clone 克隆拉取文件 branch 查看分支 checkout -b 分支名 切换自己的分支 status 查看项目状态,保证自己的工作区间干净 add . 添加所有 commit -m “注释” / -am “注释” 提交,am添加并提交 pull origin master 拉取master代码 push 推送自己的代码 log --oneline 查看日志记录 reset – hard “版本key串” 版本切换 github使用 ...原创 2020-09-15 11:20:05 · 70 阅读 · 0 评论 -
TP5事务处理,手动事务
多表数据库非查询操作 //开启事务 db()->startTrans(); try{ res=多表操作;if(!res = 多表操作; if(!res=多表操作;if(!res) return msg(201, ‘操作失败’); //提交事务 db()->commit(); }catch (\Exception $e){ //事务回滚 db()->rollback(); return msg(201, $e->getMessage()); } ...原创 2020-09-14 15:33:02 · 224 阅读 · 0 评论