上一页 1 2 3 4 5 6 ··· 97 下一页
摘要: PHP二维数组分组 $result = []; foreach ($prize_list as $item) { $id = $item['id']; if (!isset($result[$id])) { $result[$id] = []; } $result[$id][] = $item; } 阅读全文
posted @ 2023-05-26 17:28 newmiracle宇宙 阅读(66) 评论(0) 推荐(0) 编辑
摘要: $watermark = new \Imagick(); $watermark->readImage($avatarpath); $watermark->scaleImage(160, 160, true); $watermark->setFormat('png'); $mask = new \Im 阅读全文
posted @ 2023-05-12 17:32 newmiracle宇宙 阅读(33) 评论(0) 推荐(0) 编辑
摘要: <section style="line-height: 0;font-size: 0px;transform: scale(1);"><svg style="pointer-events: none;display: inline-block;width: 100%;vertical-align: 阅读全文
posted @ 2023-05-04 09:11 newmiracle宇宙 阅读(27) 评论(0) 推荐(0) 编辑
摘要: PHP chatgpt api使用方法 <?php function generate_chatbot_response($prompt) { $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, "https://api.openai.com/v 阅读全文
posted @ 2023-04-21 15:43 newmiracle宇宙 阅读(150) 评论(0) 推荐(0) 编辑
摘要: tp6跨域访问最新写法 public function handle($request, Closure $next, ? array $header = []) { $header = !empty($header) ? array_merge($this->header, $header) : 阅读全文
posted @ 2023-03-27 17:23 newmiracle宇宙 阅读(332) 评论(0) 推荐(0) 编辑
摘要: 微信小程序订阅2个消息模板需要注意的问题 1 必须2个不同类型模板 2 必须真机测试 阅读全文
posted @ 2023-03-25 22:38 newmiracle宇宙 阅读(56) 评论(0) 推荐(0) 编辑
摘要: function copyText(text){ var textValue = document.createElement('textarea'); textValue.setAttribute('readonly', 'readonly'); //设置只读属性防止手机上弹出软键盘 textVa 阅读全文
posted @ 2023-03-15 16:27 newmiracle宇宙 阅读(184) 评论(0) 推荐(0) 编辑
摘要: thinkphp6 配置redis 官方文档写法就是坑 自己实现一个吧 <?php class RedisClient { private static $instance = null; /** * Get a instance of MyRedisClient * * @param string 阅读全文
posted @ 2023-03-14 16:05 newmiracle宇宙 阅读(286) 评论(0) 推荐(0) 编辑
摘要: 重启PHP-FPM的方法 netstat -ntlp 找到进程数 然后kill -9 杀死后 然后你发现有跳出来 连续杀3次就好了 阅读全文
posted @ 2023-02-22 14:12 newmiracle宇宙 阅读(32) 评论(0) 推荐(0) 编辑
摘要: export PKG_CONFIG_PATH="/usr/local/lib/pkgconfig/" 阅读全文
posted @ 2023-02-22 11:39 newmiracle宇宙 阅读(111) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 97 下一页