Skip to content

Commit

Permalink
feat: add ttocr
Browse files Browse the repository at this point in the history
  • Loading branch information
starudream committed May 27, 2024
1 parent 720bb06 commit 76d7013
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions job/verfication.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,10 @@ func DM(gt, challenge string) (*common.Verification, error) {
}

func dm(gt, challenge string) (*common.Verification, error) {
if key := config.TT().Key; key != "" {
slog.Info("attempt to dm using ttocr, please wait a moment")
return ocr.TT(key, gt, challenge, common.RefererAct)
}
if key := config.C().RROCRKey; key != "" {
slog.Info("attempt to dm using rrocr, please wait a moment")
return ocr.RR(key, gt, challenge, common.RefererAct)
Expand Down

0 comments on commit 76d7013

Please sign in to comment.