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

1915 Commits

Author SHA1 Message Date
dependabot[bot]
12e0cb4afb
chore(deps): bump golang.org/x/image from 0.9.0 to 0.10.0 (#2484)
* feat(actions): add Check and Close Invalid PR

* Update README.md

* Update README.md

* chore(deps): bump golang.org/x/image from 0.9.0 to 0.10.0

Bumps [golang.org/x/image](https://github.com/golang/image) from 0.9.0 to 0.10.0.
- [Commits](https://github.com/golang/image/compare/v0.9.0...v0.10.0)

---
updated-dependencies:
- dependency-name: golang.org/x/image
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: 源文雨 <41315874+fumiama@users.noreply.github.com>
Co-authored-by: Mrs4s <mrs4sxiaoshi@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-26 21:56:53 +09:00
dependabot[bot]
e06edd2412
chore(deps): bump golang.org/x/crypto from 0.11.0 to 0.17.0 (#2502)
* feat(actions): add Check and Close Invalid PR

* Update README.md

* Update README.md

* chore(deps): bump golang.org/x/crypto from 0.11.0 to 0.17.0

Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.11.0 to 0.17.0.
- [Commits](https://github.com/golang/crypto/compare/v0.11.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: 源文雨 <41315874+fumiama@users.noreply.github.com>
Co-authored-by: Mrs4s <mrs4sxiaoshi@gmail.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-26 21:54:34 +09:00
源文雨
5aca1f4500 chore: make lint happy 2024-02-26 21:54:11 +09:00
源文雨
75635739ba
Merge pull request #2504 from Akegarasu/fix-2494
fix #2494
2024-01-07 12:55:24 +08:00
秋葉杏
d25e320238
fix: log error when reading version file. (#2503) 2024-01-04 17:54:12 +08:00
Akegarasu
b8d622bb90
fix #2494 2024-01-04 00:55:22 +08:00
源文雨
9cccd0e39b
Merge pull request #2492 from zhullyb/master
fix: switch ghproxy.com to mirror.ghproxy.com
2023-11-22 23:08:58 +08:00
zhullyb
e1a4293ee6 fix: switch ghproxy.com to mirror.ghproxy.com
ghproxy.com 已经被墙,根据其网页上的通知应当更换为二级域名 mirror.ghproxy.com,或考虑使用别的反代服务
2023-11-14 11:28:48 +08:00
源文雨
fcf79ded58 fix(cmd/main): -update-protocol 不保存新文件 2023-10-10 00:20:35 +09:00
Lumine
bd785d3894
尝试修复首次登录时容易出现 code -10005 和 packet timed out 的问题 (#2463)
* try to fix: code -10005 and packet timed out (first login)
* 此问题猜测可能是成功登录前无法向服务器发送sso packet并获取结果。
  在有callback之前似乎没有出现这个问题,怀疑是这里的问题。
  等待 100s 后(以等待完成过滑块)再提交初始化包以尝试解决
* sign submit 内容改为仅在debug模式下打印

* impl #2455
* 在“群消息发送失败: 账号可能被风控”的时候提供group_id

* optimize: sign callback wait until online
* 等待至 bot 在线再发包,而不是简单地等待 100s
2023-10-09 22:03:26 +09:00
github-actions[bot]
517d323953 ci(chore): Fix stylings 2023-10-01 04:29:02 +00:00
xiangxiangxiong9
07214e396e
尝试实现 #2421 (#2422) 2023-10-01 13:27:06 +09:00
Lumine
1c34643f4f
fix nil pointer dereference caused by nil 'cs' (#2440)
* fix: nil pointer dereference caused by nil 'cs'
修复刷新 token 时若当前签名服务不可用而主签名服务可用会导致panic的问题。
btw, energy 出现decode error时打印出导致错误的数据内容

* optimize: 只配置了一个签名服务时不进行检查和切换操作

* fix(qsign): 刷新token提示未初始化

修复在qsign崩溃重启前请求了签名服务器导致当前签名服务器被标记为不可用(`ss.set(nil)`),
从而不会再执行sign请求(除非有其他请求签名服务器的操作)
这可能导致下一次刷新token提示uin is not registered或者提示未初始化

* update qsign.go
2023-10-01 13:26:09 +09:00
YumeMichi
f16d72f0ca
!fixup: optimize(qisgn): async operations (#2415)
Add missing wg.Wait()

Fixes: fd6ef4a2b8ed ("optimize(qisgn): async operations")

Signed-off-by: Yuan Si <do4suki@gmail.com>
2023-08-31 19:01:53 +08:00
源文雨
9e6d7b7650 fix: nil pointer 2023-08-29 22:56:28 +08:00
源文雨
417a0f256a fix: nil pointer 2023-08-29 22:50:02 +08:00
源文雨
77b54fca20 fix: nil pointer 2023-08-29 13:05:48 +08:00
源文雨
fd6ef4a2b8 optimize(qisgn): async operations
FYI: @1umine
2023-08-28 16:56:19 +08:00
github-actions[bot]
79a194fbb0 ci(chore): Fix stylings 2023-08-27 05:21:40 +00:00
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