From 92ab89c1bb58d7e3a641e2aaa58980c244810788 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=90=AF=E6=98=8E?= <455043818@qq.com> Date: Wed, 22 Nov 2023 14:57:29 +0800 Subject: [PATCH] =?UTF-8?q?chore:11=E6=9C=8822=E6=97=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 2 ++ docs/daily/2023-11.md | 13 ++++++++++++- .../2023-10-26-\345\237\271\350\256\255.md" | 6 ++++++ docs/javascript/2023-11-21-dotnetcore.md | 15 ++++++++++----- 4 files changed, 30 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index ecaaa593ce..efc9847b3d 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,8 @@ - 讯飞星火 https://xinghuo.xfyun.cn - 通义听悟 https://tingwu.aliyun.com - 7月31日 充值绑定ChatGPT API 付费 https://mercury.com +## 11月22日 +- https://github.com/JushBJJ/Mr.-Ranedeer-AI-Tutor ## 11月7日 - https://platform.openai.com/playground - diff --git a/docs/daily/2023-11.md b/docs/daily/2023-11.md index 4fac73c766..5b126e1980 100644 --- a/docs/daily/2023-11.md +++ b/docs/daily/2023-11.md @@ -1,5 +1,16 @@ - ## 11月22日 +- mysql 通过sql替换字符串中某一段 + ``` + // 只替换一种/xxxx.jpg + UPDATE File + SET Url = REGEXP_REPLACE(Url, '/[^/]+\\.jpg$', `Name`) + WHERE Id=1644689089305382912 + + // 可以替换多种类型 /xxxx.jpg /xxxx.png等 + UPDATE File + SET Url = REGEXP_REPLACE(Url, '/[^/]+\\.(jpg|png|mp4)$', CONCAT('/', `Name`)) + WHERE Id = 1644689089305382912; + ``` - 网站访问图片有时候有问题 可以查看nginx error.log ``` cd /var/log/nginx/error.log diff --git "a/docs/javascript/2023-10-26-\345\237\271\350\256\255.md" "b/docs/javascript/2023-10-26-\345\237\271\350\256\255.md" index 88d0d373b3..2009fe4b0a 100644 --- "a/docs/javascript/2023-10-26-\345\237\271\350\256\255.md" +++ "b/docs/javascript/2023-10-26-\345\237\271\350\256\255.md" @@ -259,3 +259,9 @@ whoami echo $USER ``` + + +## 安装goploy +``` +https://github.com/zhenorzz/goploy +``` \ No newline at end of file diff --git a/docs/javascript/2023-11-21-dotnetcore.md b/docs/javascript/2023-11-21-dotnetcore.md index 1bc53afaab..0b90be55b0 100644 --- a/docs/javascript/2023-11-21-dotnetcore.md +++ b/docs/javascript/2023-11-21-dotnetcore.md @@ -25,9 +25,10 @@ dotnet-ef database update -c DvsContext --framework net6.0 ## api.nuget.ogr/v3/index.json无法访问是因为翻墙的问题 - -更改为直连即可 - + + ``` + 将代理更改为直连即可 + ``` ## linux 服务位置 ``` @@ -197,8 +198,6 @@ SHOW DATABASES; } ``` - - ## 事务里面如果有创建表结构的则不会跟随事务 ## 数据库菜单更新 @@ -244,3 +243,9 @@ DVS.Basic/Templates/Menu.json // 然后 重写ExecuteAsync, 这个服务中的ExecuteAsync 方法会一直执行 ``` + + +## rabbitmq 异步任务处理 +``` + +``` \ No newline at end of file