Skip to content

Commit b49b045

Browse files
authored
fix api path of check data (#5)
1 parent aea47c3 commit b49b045

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

golang/resetapi/apis.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package resetapi
22

33
const (
44
GetDataUrlPath = "/api/v1/public/get-data"
5-
CheckDataUrlPath = "/api/v1/public/check-status"
5+
CheckDataUrlPath = "/api/v1/public/check-data"
66
CheckStatusUrlPath = "/api/v1/public/check-status"
77

88
GetStatusInfoUrlPath = "/api/v1/manage/get-status-info"

golang/resetapi/rest_api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ func (c *client) CheckData(ctx context.Context, id, captchaKey, value string) (b
220220
return false, fmt.Errorf("code: %d, message: %v, data: %v", resData.Code, resData.Message, resData.Data)
221221
}
222222

223-
return true, nil
223+
return resData.Data == "ok", nil
224224
}
225225

226226
// CheckStatus ..

0 commit comments

Comments
 (0)