1
0
mirror of https://github.com/Mrs4s/go-cqhttp.git synced 2025-05-04 19:17:37 +08:00

1896 Commits

Author SHA1 Message Date
Lumine
f8354ec082
修复TCP缓冲区不足问题;重构 qsign 签名服务对接部分;支持配置多个签名服务器 (#2389)
* fix: skip callback error

* update: update comment

* change the logic of callback and auto-register

* add token update prompt.

* fix log buffer string

* fix #2368

增加对 client 的利用,避免创建过多 clients

* refactor: wrap sign request

* feat: impl additional sign servers configuration

* fix error in using configurations.

* fix lint error

* 支持切换回主签名服务器

* feat: support different key and auth

* optimize: find avaliable sign-server

* fix: register instance after server is changed

* fix lint error

* update: add config 'sync-check-servers'

* update: first check master sign-server, or wait 3s

* add checking log & optimize wait for checking done

* fix wrong judge

* add config: rule for changing sign server

* optimize registration logic after changing server

* add some log

* fix #2390

* resolve requested changes in #2389

* update dependency

* fix lint error 'idx is unused'

* refactor: extract sync check and async check logic

* delete async check sign-server
2023-08-27 13:19:38 +08:00
xiwangly
d85d697fc2
Fix: SignServer TCP ping for custom port (#2353) 2023-08-23 13:02:42 +08:00
Komei_DiSanXian
da9f03fa47
fix #2368, which causes system lacked sufficient buffer space (#2372)
* fix #2368

* add CloseIdleConnections at WriteToFileMultiThreading
2023-08-23 12:59:53 +08:00
xiangxiangxiong9
977030e814
Revert #2207 (#2397) 2023-08-23 12:39:28 +08:00
源文雨
5db03c7092 fix #2347: This mutex is not locked 2023-08-04 16:33:29 +08:00
源文雨
3b99a825eb optimize(login): log打印 2023-08-03 11:56:19 +08:00
源文雨
94a3ff5dae dowgrade mongo-driver to latest static 2023-08-02 00:29:23 +08:00
源文雨
0714aac1f0 fix: panic after -10005 2023-08-01 16:44:15 +08:00
源文雨
ca20a3d6bf update deps 2023-08-01 16:42:49 +08:00
源文雨
ce119b7ddf Merge branch 'master' of https://github.com/Mrs4s/go-cqhttp into dev 2023-08-01 12:36:04 +08:00
源文雨
a6fd7de65a
sync: master to dev (#2340) (#2341)
* fix: group not found report (#2312)

解决以下问题:
当群组踢人时,该人不在群内,返回“群聊不存在”的BUG

https://github.com/Mrs4s/go-cqhttp/issues/1774#issue-1459854639

* Update bug-report.yaml (#2234)

* 更新docker action, 支持更多的平台 (#2217)

* Update build_docker_image.yml

* Update docker-entrypoint.sh

* Update build_docker_image.yml

*  update docker action, more platforms are supported

---------




* 🐛 修复时区不是东八区的 BUG (#2212)

设置 TZ 环境变量需要先装`tzdata`这个包才会生效

* Update bug-report.yaml (#2126)



* Docker: support continuous params on CMD option (#1829)

now it supports usage like `docker run -it --rm go-cqhttp -faststart`



* make lint happy

---------

Co-authored-by: PSoul <psoul1@163.com>
Co-authored-by: 简律纯 <i@jyunko.cn>
Co-authored-by: LY <1334850101@qq.com>
Co-authored-by: xiwangly2 <1334850101@qq.om>
Co-authored-by: Antonia Adams <10476982+li-xunhuan@users.noreply.github.com>
Co-authored-by: Akirami <66513481+A-kirami@users.noreply.github.com>
Co-authored-by: Nanahira <78877@qq.com>
2023-08-01 12:34:59 +08:00
源文雨
8ea182a4c3
sync: master to dev (#2340)
* fix: group not found report (#2312)

解决以下问题:
当群组踢人时,该人不在群内,返回“群聊不存在”的BUG

https://github.com/Mrs4s/go-cqhttp/issues/1774#issue-1459854639

* Update bug-report.yaml (#2234)

* 更新docker action, 支持更多的平台 (#2217)

* Update build_docker_image.yml

* Update docker-entrypoint.sh

* Update build_docker_image.yml

*  update docker action, more platforms are supported

---------

Co-authored-by: xiwangly2 <1334850101@qq.om>
Co-authored-by: 源文雨 <41315874+fumiama@users.noreply.github.com>

* 🐛 修复时区不是东八区的 BUG (#2212)

设置 TZ 环境变量需要先装`tzdata`这个包才会生效

* Update bug-report.yaml (#2126)

Co-authored-by: 源文雨 <41315874+fumiama@users.noreply.github.com>

* Docker: support continuous params on CMD option (#1829)

now it supports usage like `docker run -it --rm go-cqhttp -faststart`

Co-authored-by: 源文雨 <41315874+fumiama@users.noreply.github.com>

* make lint happy

---------

Co-authored-by: PSoul <psoul1@163.com>
Co-authored-by: 简律纯 <i@jyunko.cn>
Co-authored-by: LY <1334850101@qq.com>
Co-authored-by: xiwangly2 <1334850101@qq.om>
Co-authored-by: Antonia Adams <10476982+li-xunhuan@users.noreply.github.com>
Co-authored-by: Akirami <66513481+A-kirami@users.noreply.github.com>
Co-authored-by: Nanahira <78877@qq.com>
2023-08-01 12:32:51 +08:00
源文雨
99cdf9247a
make lint happy 2023-08-01 12:32:29 +08:00
源文雨
837e163ef6
Merge branch 'dev' into master 2023-08-01 12:29:47 +08:00
PSoul
fe92bb54df
api: rename kick message type (#1775)
踢人时进行判断,当该人不在群内时返回人员不存在的错误

Co-authored-by: 源文雨 <41315874+fumiama@users.noreply.github.com>
2023-08-01 11:47:11 +08:00
脆饼干
7cae9829a8
api: _send_group_notice return noticeId (#1834)
Co-authored-by: 源文雨 <41315874+fumiama@users.noreply.github.com>
2023-08-01 11:45:05 +08:00
Nanahira
3992dd40c5
Docker: support continuous params on CMD option (#1829)
now it supports usage like `docker run -it --rm go-cqhttp -faststart`

Co-authored-by: 源文雨 <41315874+fumiama@users.noreply.github.com>
2023-08-01 11:44:49 +08:00
A lucky guy
1bd0bb9ae2
fix: 修复release 的 action 只拉主仓库,修复 checkout 可能的问题 (#1999) 2023-08-01 11:35:22 +08:00
源文雨
b8527721c2 make lint happy 2023-08-01 11:34:34 +08:00
Lu7fer
14539adcb8
fix: #2112 add CQ code reply to db and solve recursive reply resolve (#2115)
Co-authored-by: 源文雨 <41315874+fumiama@users.noreply.github.com>
2023-08-01 11:32:32 +08:00
Akirami
1911b5d245
Update bug-report.yaml (#2126)
Co-authored-by: 源文雨 <41315874+fumiama@users.noreply.github.com>
2023-08-01 11:26:58 +08:00
虞灪
75ad7aa45c
fix: 修复和文档不一致的数据 (#2189)
* fix: 修复获取群荣誉列表群聊之火键名错误问题

* fix: 修复获取版本信息,错误的go-cqhttp字段
2023-08-01 11:25:44 +08:00
xiangxiangxiong9
cffdfd8181
尝试使 get_msg 获取消息中的回复信息 (#2207) 2023-08-01 11:24:59 +08:00
Antonia Adams
99e5cb6c6b
🐛 修复时区不是东八区的 BUG (#2212)
设置 TZ 环境变量需要先装`tzdata`这个包才会生效
2023-08-01 11:22:12 +08:00
LY
09ab2169d9
更新docker action, 支持更多的平台 (#2217)
* Update build_docker_image.yml

* Update docker-entrypoint.sh

* Update build_docker_image.yml

*  update docker action, more platforms are supported

---------

Co-authored-by: xiwangly2 <1334850101@qq.om>
Co-authored-by: 源文雨 <41315874+fumiama@users.noreply.github.com>
2023-08-01 11:21:49 +08:00
xiangxiangxiong9
2b1d9c21cb
Fix #2226 - 修改 coolq/cqcode.go#L54 安卓端私聊回复时r.GroupID似乎为0 (#2230) 2023-08-01 11:20:02 +08:00
简律纯
998fda54a2
Update bug-report.yaml (#2234) 2023-08-01 11:17:29 +08:00
源文雨
5cb8548487 resolve conflicts 2023-08-01 11:16:58 +08:00
Bluefissure
88f5db89a8
feat: add Bearer authentication to sign server requests (#2247)
* feat: add sign-server-bearer

* fix: golint

* fix: golint

* fix: remove trimprefix

---------

Co-authored-by: 源文雨 <41315874+fumiama@users.noreply.github.com>
2023-08-01 11:15:31 +08:00
源文雨
7c813f8579 feat: add config sign-server-timeout 2023-08-01 11:09:04 +08:00
SuperKenVery
7adbbd6f81
增加签名服务器请求超时时间 (#2302)
* Increase timeout in download

* 直接改一分钟好了

---------

Co-authored-by: 源文雨 <41315874+fumiama@users.noreply.github.com>
2023-08-01 10:48:14 +08:00
源文雨
04cbf7b5d7 优化命名 2023-08-01 10:44:55 +08:00
源文雨
dae03784cc make lint happy 2023-08-01 10:38:53 +08:00
Lumine
f466ca7a72
feat: 提供 1.1.6 版本以上 qsign 的对接支持 (#2307)
* 增加签名服务超时设置

* 获取签名和err为空时尝试重新注册实例

* 可配置自动刷新token以及自动注册

* fix lint

* wrap callback

* add config: refresh-interval

* support qsign's `auto-register`

* fix: add registerLock to avoid repeat registraion.

* update: Enable disabling auto token refresh

* fix: use string android_id (not hexadecimal

* update default_config.yml

* fix: compatible with older  qsign (bellow 1.1.0

* fix: refresh token

* update dependency

* update go.sum

* fix: fix warnings on old version sign server

---------

Co-authored-by: 源文雨 <41315874+fumiama@users.noreply.github.com>
2023-08-01 10:33:32 +08:00
Komei_DiSanXian
13215f23c5
feat: add waitSignServer (#2311)
* add: 等待签名服务器启动以后再进行注册

* add: 支持签名服务器自动注册实例

* fix

* fix: 修复获取sign 时报错

* 调整代码结构

* Update login.go

* Update main.go

* Update login.go

---------

Co-authored-by: 源文雨 <41315874+fumiama@users.noreply.github.com>
2023-08-01 09:36:57 +08:00
源文雨
19dd37a938
fix(lint): if-block 2023-08-01 09:36:21 +08:00
源文雨
a3ad233cd9
fix: group not found report (#2312) (#2337)
解决以下问题:
当群组踢人时,该人不在群内,返回“群聊不存在”的BUG

https://github.com/Mrs4s/go-cqhttp/issues/1774#issue-1459854639

Co-authored-by: PSoul <psoul1@163.com>
2023-08-01 08:55:59 +08:00
PSoul
06461960a9
fix: group not found report (#2312)
解决以下问题:
当群组踢人时,该人不在群内,返回“群聊不存在”的BUG

https://github.com/Mrs4s/go-cqhttp/issues/1774#issue-1459854639
2023-08-01 08:53:37 +08:00
achieve
aa3a5d28da
optimize: increase http client timeout (#2315) 2023-08-01 08:51:58 +08:00
赵怡然
a4c131e04a
fix: cancel hex encoding of android_id field (#2318) 2023-08-01 08:47:59 +08:00
github-actions[bot]
526391e613 ci(chore): Fix stylings 2023-07-10 06:44:28 +00:00
Mrs4s
2901fd14bb
Merge pull request #2283 from KomeiDiSanXian/dev
update: support sign sever up to v1.1.3
2023-07-10 14:42:26 +08:00
KomeiDiSanXian
16a2ff050e fix lint warning: unused-parameter 2023-07-10 07:22:50 +08:00
KomeiDiSanXian
6cf8030d3c update: 兼容签名服务器到v1.1.3 2023-07-10 07:15:43 +08:00
Mrs4s
9c1390c75c
feat: support sign server v1.1.0 2023-06-27 18:11:06 +08:00
Mrs4s
b958046a27
Merge branch 'master' into dev 2023-06-27 17:16:14 +08:00
xiangxiangxiong9
19906eba36
修复群匿名消息事件中的重复的sub_type #2216 (#2219) 2023-06-20 21:54:07 +08:00
敖律风
8e6e79f734
bootstrap改进 (#2192)
* 保证云函数能直接调用启动脚本

* 添加末尾空格

以免某些shell无法正确执行。

* 还原 .gitignore

还原因为粗心提交上去的本地文件忽略

---------

Signed-off-by: BuildTools <x123456789fy@outlook.com>
2023-06-08 15:17:12 +08:00
felinae98
9b9ecd6a41
chore(docker): adjust dockerfile and entrypoint (#2194)
* chore(docker): adjust dockerfile and entrypoint
2023-06-04 10:23:45 +08:00
yuanyan3060
c8e480d12f
Update default_config.yml (#2151) 2023-06-04 09:59:46 +08:00