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

48 Commits

Author SHA1 Message Date
源文雨
730d01c648 chore: make lint happy 2024-02-26 21:59:17 +09:00
源文雨
5aca1f4500 chore: make lint happy 2024-02-26 21:54:11 +09:00
秋葉杏
d25e320238
fix: log error when reading version file. (#2503) 2024-01-04 17:54:12 +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
源文雨
417a0f256a fix: nil pointer 2023-08-29 22:50:02 +08:00
源文雨
fd6ef4a2b8 optimize(qisgn): async operations
FYI: @1umine
2023-08-28 16:56:19 +08: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
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
源文雨
04cbf7b5d7 优化命名 2023-08-01 10:44:55 +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
KomeiDiSanXian
6cf8030d3c update: 兼容签名服务器到v1.1.3 2023-07-10 07:15:43 +08:00
Mrs4s
9c1390c75c
feat: support sign server 2023-06-27 18:11:06 +08:00
wdvxdr
42606a825d internal/download: disable http when not visiting go-cqhttp.org 2023-04-09 17:51:32 +08:00
Mrs4s
0b90074a48
feat: http timeout setting 2023-04-08 17:08:53 +08:00
wdvxdr
13325634c0 make lint happy 2023-04-08 11:34:19 +08:00
Mrs4s
1ab1cba84c
rf: change protocol auto-update to manual update 2023-04-02 18:04:13 +08:00
Mrs4s
73bd3c92f3
update dep & add limitation for qrcode login 2023-03-18 10:22:40 +08:00
Mrs4s
3a60e081f2
feat: protocol updater supports fallback to ghproxy 2023-03-17 22:30:13 +08:00
github-actions[bot]
1d0b513b96 ci(chore): Fix stylings 2023-03-14 18:35:19 +00:00
Mrs4s
0312f05f6e
feat: basic protocol auto-updater 2023-03-15 02:33:04 +08:00
Mrs4s
3f4630b6d1
ref: improve protocol display name 2023-03-13 01:01:43 +08:00
源文雨
291942357b fix: 在登录时不禁用快速编辑 2023-03-01 20:56:28 +08:00
源文雨
dbddd18e3a 优化注释 2023-02-28 21:14:35 +08:00
源文雨
ddd52ca933 feat: 禁用快速编辑&优化启动流程 2023-02-28 20:39:25 +08:00
wdvxdr
0c9f7a1f8f fix device 2023-02-20 14:06:08 +08:00
wdvxdr
6b3aabd9af update MiraiGo 2023-02-14 23:27:15 +08:00
Mrs4s
49a8b9bd64
clean code 2023-01-01 21:25:38 +08:00
Shigma
2c1cd57dfe
Merge branch 'dev' into isatty 2022-12-26 23:08:33 +08:00
Shigma
b981b45245
feat: check if stdin isatty
Co-Authored-By: Il Harper <hi@ilharper.com>
2022-11-21 19:55:26 +08:00
Madray Haven
93fa36034a fix: daemon mode 2022-11-08 09:46:46 +08:00
wdvxdr
db64699f3c
all: use os.Chdir instead of fork a process when changing working directory 2022-11-03 20:47:43 +08:00
Madray Haven
4ff61215c6 fix: wrong pid output when -w use with -d 2022-09-11 19:59:02 +08:00
Cinte
7d97216612
fix: data文件夹权限问题 (#1529)
* fix: data文件夹权限问题

当权限644时候,data文件夹会由于没有执行权限而无法创建后续的图片...等一系列文件夹。

* 0o744->0o755
2022-06-06 12:38:50 +08:00
wdvxdr
c141501ae5
all: update MiraiGo and some minor changes 2022-05-23 11:13:44 +08:00
wdvxdr
0a603dee92
dep: revert go-silk version 2022-03-18 18:49:08 +08:00
wdvxdr
4d8c55aca1
cmd/gocq: adapt MiraiGo Logger interface 2022-03-02 22:08:47 +08:00
wdvxdr
c00e07dec9
coolq: adapt generic event handle & update MiraiGo 2022-03-01 16:30:23 +08:00
wdvxdr
75bed6aabc
coolq: clean readImageCache 2022-02-18 19:11:43 +08:00
Mrs4s
8773ff9bd1
Merge pull request #1341 from Ink-33/patch-5
style: add some comments
2022-02-06 22:41:05 +08:00
wdvxdr
f88f51ceed
cmd/gocq: switch faststart over to a flag 2022-02-06 16:04:03 +08:00
Ink33
7dc4a0bf5e
style: add some comments 2022-01-26 20:30:41 +08:00
wdvxdr
3f67bee51e
dep: update MiraiGo
may Fixes #1276
2021-12-19 15:44:20 +08:00
wdvxdr
38000611c3
dep: update MiraiGo 2021-12-17 21:05:27 +08:00
Mrs4s
304667a822
feat: error dump 2021-12-16 17:48:39 +08:00
源文雨
a06a891186
feat: 将程序的主体部分移动到 cmd/gocq (#1215)
* feat: move main into cmd/gocq

* fix: make lint happy

* fix: rename Boot to Main
2021-12-04 13:48:12 +08:00