feat: 添加定时系统
- 实现定时任务
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user