From 0faa3f4e6ca97edfcc2f59707d5df8c08faf6384 Mon Sep 17 00:00:00 2001 From: qydysky Date: Thu, 22 Jun 2023 10:34:13 +0000 Subject: [PATCH] =?utf8?q?Improve=20=E4=BF=AE=E6=94=B9=E9=A2=84=E8=A7=88?= =?utf8?q?=E5=9C=B0=E5=9D=80=E9=85=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- README.md | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index e8163f3..d684fa9 100644 --- a/README.md +++ b/README.md @@ -3,6 +3,8 @@ [![codecov](https://codecov.io/gh/qydysky/bili_danmu/branch/master/graph/badge.svg?token=2R7031P47C)](https://codecov.io/gh/qydysky/bili_danmu) [![Libraries.io dependency status for GitHub repo](https://img.shields.io/librariesio/github/qydysky/bili_danmu)](https://libraries.io/go/github.com%2Fqydysky%2Fbili_danmu) [![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2Fqydysky%2Fbili_danmu.svg?type=small)](https://app.fossa.com/projects/git%2Bgithub.com%2Fqydysky%2Fbili_danmu?ref=badge_small) +![Website](https://img.shields.io/website?up_message=%E5%9C%A8%E7%BA%BF&down_message=%E7%A6%BB%E7%BA%BF&url=http%3A%2F%2F8.134.76.53%3A8080%2Fweb&label=92613%E5%B0%91%E5%B9%B4Pi%E7%9A%84%E7%9B%B4%E6%92%AD%E5%9B%9E%E6%94%BE&link=https%3A%2F%2Fbili.qydysky.org%2F) + ![commits](https://img.shields.io/github/commit-activity/m/qydysky/bili_danmu) ![GitHub all releases](https://img.shields.io/github/downloads/qydysky/bili_danmu/total) @@ -336,7 +338,7 @@ ass编码GB18030支持中文 ```json { "日志文件输出-help": "为空时不保存日志", - "日志文件输出": "danmu.log", + "日志文件输出": "", "指定弹幕重启录制":[ { "uid":"29183321", @@ -347,7 +349,7 @@ ass编码GB18030支持中文 "直播流清晰度": 10000, "直播流类型-help": "flv,fmp4,flvH,fmp4H,带H后缀的为Hevc格式编码", "直播流类型": "flv", - "直播流保存位置": "./live", + "直播流保存位置": "/live", "Web服务地址":"0.0.0.0:10000", "直播Web服务路径":"/web/", "直播Web可以发送弹幕":false, @@ -374,13 +376,20 @@ ass编码GB18030支持中文 "cookie加密公钥": "public.pem", "cookie解密私钥": "private.pem", "debug模式-help":"在/debug/pprof/启用调试", - "debug模式":false, + "debug模式":true, "保存弹幕至db": { - "dbname": "mysql", - "url":"root:root@(192.168.31.103:10836)/test", + "dbname": "postgres", + "url":"postgres://postgres:qydysky@192.168.31.103:5432/postgres?sslmode=disable", "字段help":"time.Now().Format(time.DateTime), time.Now().Unix(), item.msg, item.color, item.auth, item.uid, item.roomid", "create":"create table danmu (created varchar(20), createdunix varchar(20), msg varchar(100), color varchar(20), auth varchar(50), uid varchar(30), roomid varchar(30))", "insert":"insert into danmu (created, createdunix, msg, color, auth, uid, roomid) values ({Date},{Unix},{Msg},{Color},{Auth},{Uid},{Roomid})" + }, + "保存日志至db":{ + "dbname": "postgres", + "url":"postgres://postgres:qydysky@192.168.31.103:5432/postgres?sslmode=disable", + "字段help":"$1:Prefix $2:Base $3:Msgs, use ? or $%d not placeholder", + "create":"create table log (created timestamp, Prefix varchar(10), Base varchar(30), Msgs varchar(500))", + "insert":"insert into log (created, Prefix, Base, Msgs) values (now(),$1,$2,$3)" } } ``` -- 2.39.2