feat: 添加定时系统

- 实现定时任务
This commit is contained in:
2026-03-26 22:59:58 +08:00
parent 858c29a799
commit b0db64bd7b
8 changed files with 126 additions and 9 deletions

View File

@@ -1,6 +1,7 @@
package ckwk
import (
"ckwk/internal/conf"
"ckwk/pkg/common"
"ckwk/pkg/log"
"ckwk/pkg/request"
@@ -97,7 +98,7 @@ func (wk *WK) Code() (string, error) {
"png_fix": "false",
}).
SetResult(&result).
Post("http://localhost:8000/ocr")
Post(fmt.Sprintf("%s/ocr", conf.DdddOCR))
if err != nil {
return "", fmt.Errorf("获取验证码验证结果失败: %w", err)
}