Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: sync dev to master #2470

Merged
merged 21 commits into from
Oct 9, 2023
Merged

chore: sync dev to master #2470

merged 21 commits into from
Oct 9, 2023

Conversation

fumiama
Copy link
Collaborator

@fumiama fumiama commented Oct 9, 2023

master不少人没法登陆了,所以同步一下。

fumiama and others added 21 commits August 1, 2023 12:32
* fix: group not found report (#2312)

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

#1774 (comment)

* 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 <[email protected]>
Co-authored-by: 源文雨 <[email protected]>

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

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

* Update bug-report.yaml (#2126)

Co-authored-by: 源文雨 <[email protected]>

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

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

Co-authored-by: 源文雨 <[email protected]>

* make lint happy

---------

Co-authored-by: PSoul <[email protected]>
Co-authored-by: 简律纯 <[email protected]>
Co-authored-by: LY <[email protected]>
Co-authored-by: xiwangly2 <[email protected]>
Co-authored-by: Antonia Adams <[email protected]>
Co-authored-by: Akirami <[email protected]>
Co-authored-by: Nanahira <[email protected]>
* fix #2368

* add CloseIdleConnections at WriteToFileMultiThreading
* 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
Add missing wg.Wait()

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

Signed-off-by: Yuan Si <[email protected]>
* 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
* 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
@fumiama fumiama merged commit 6ac7a8f into master Oct 9, 2023
24 checks passed
@github-actions
Copy link
Contributor

github-actions bot commented Oct 9, 2023

Invalid PR to non-dev branch master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

8 participants