
小项目
文章平均质量分 57
Joe.Xie
hello world
展开
-
VUE 富文本 wangEditor v4版本 增加源码模式 与 Monaco Editor结合使用
VUE 富文本 找了好多开源库 , 发现 wangEditor Github的星最多 应该也是值得信赖的 但是在使用过程中发现wangEditor 没有源码模式, 文档也说明需要自己对接 wangEditor官方文档 于是自己写了一个与 Monaco Editor结合使用例子 // 在需要使用富文本 使用自己 封装自定义的组件 import Wangeditor from "@/components/customEditor"; <customEditor v-model="va.原创 2021-11-25 18:06:06 · 2628 阅读 · 0 评论 -
PHP 模拟登录 cookie
前提是你已经获取到登录cookie $cookie_file = __DIR__ . "/".'cookies.txt'; $curl = curl_init(); curl_setopt_array($curl, array( CURLOPT_RETURNTRANSFER => true, CURLOPT_ENCODING => "", CURLOPT_MAX...原创 2018-10-11 10:24:46 · 3074 阅读 · 0 评论 -
支付宝API授权获取用户信息旧版问题 alipay.user.userinfo.share
通过AlipayUserUserinfoShareRequest 获取信息不全 只有user_id 其他头像,姓名的信息都没能获取 解决方案 alipay.user.userinfo.share 改为 alipay.userinfo.share 并且需要修改授权时指定的scope 为auth_user 可以参考 https://openclub.alipay.com/read.php?tid=...原创 2018-12-22 10:38:46 · 6769 阅读 · 0 评论 -
ThinkPHP5 增加水印 图片 报错 imagettfbbox(): Could not find/open font
$image = \think\Image::open($path.$imgName); $image->text('水印内容','./static/shuiyin.ttf',18,'#FFFFFF')->save($path.$imgName); 执行会报错 imagettfbbox(): Could not find/open font 遇到这个问题是GD库更新问题,字体路径存在...原创 2019-01-22 15:24:25 · 6693 阅读 · 2 评论 -
PHP AES 使用AES/ECB/PKCS7Padding 填充模式加密,兼容PHP 7版本
参考手册 http://www.php.net/manual/en/function.openssl-decrypt.php class Security{ public static function encrypt($input, $key) { if (substr(PHP_VERSION, 0, 1) == '7') { ...原创 2019-02-27 15:04:39 · 5287 阅读 · 0 评论