1 2 3 4 5 ··· 44 下一页
摘要: 一.常用正则表达式符号和语法: '.' 匹配所有字符串,除\n以外 ‘-’ 表示范围[0-9] '*' 匹配前面的子表达式零次或多次。要匹配 * 字符,请使用 \*。 '+' 匹配前面的子表达式一次或多次。要匹配 + 字符,请使用 \+ '^' 匹配字符串开头 ‘$’ 匹配字符串结尾 re '\' 阅读全文
posted @ 2021-12-06 14:53 龙卷风之殇 阅读(341) 评论(0) 推荐(0)
摘要: 安装workerman/crontab 时出现需要输入 token 的情况 这时我们可以先输入 composer diagnsose自带的诊断工具检查下什么问题: 可以看到有问题,建议我们输入 composer self-update --update-keys,输入后出现 按照提示打开 链接,让按 阅读全文
posted @ 2026-01-19 10:59 龙卷风之殇 阅读(3) 评论(0) 推荐(0)
摘要: 调用PHP接口时,经常会出现 Unexpected UTF-8 BOM(decode using utf-8-sig),例如: import requests import json url = "https://jjapixxxxxql/verify" params = { "username": 阅读全文
posted @ 2025-12-24 13:59 龙卷风之殇 阅读(4) 评论(0) 推荐(0)
摘要: 1.安装think-worker composer require topthink/think-worker 2.安装mqtt composer require workerman/mqtt 3.新建类文件 4.编写业务逻辑 <?php namespace app\worker\controlle 阅读全文
posted @ 2025-12-05 14:09 龙卷风之殇 阅读(30) 评论(0) 推荐(0)
摘要: 想要筛选 json字段里面数据 SELECT R.id as '序号ID', R.user_id, JSON_EXTRACT( M.attachment, '$.coins' ) as '赠送金币', JSON_EXTRACT( M.attachment, '$.points' ) as '赠送彩票 阅读全文
posted @ 2025-11-25 10:42 龙卷风之殇 阅读(5) 评论(0) 推荐(0)
摘要: 背景: keys 命令是堵塞命令,一旦数据量增大,其他redis 命令无法执行必须等待keys 命令返回结果,这才有了 scan命令 $redis = Cache::store('redis'); $redis->select(1); //$keys = $redis->keys('wu*'); $ 阅读全文
posted @ 2025-09-11 11:18 龙卷风之殇 阅读(13) 评论(0) 推荐(0)
1 2 3 4 5 ··· 44 下一页