图片旋转之角度计算[科学]

API介绍

获取旋转角度

地址

http://45.67.139.222:8080/rotateCaptcha/queryAngle

方法

POST

CONTENT-TYPE

application-json

参数

token: xxxxx

base64: 图片转base64字符串

请求参数示例

{
    "token": "xxxx",
    "base64": "xxxxxxxxxx"
}

响应

code: 200(成功), 其他表示失败

data: 168(值为旋转角度)

案例

请求

curl版本
curl --location --request POST 'http://45.67.139.222:8080/rotateCaptcha/queryAngle' \
--header 'Content-Type: application/json' \
--data-raw '{
    "token": "xxx",
    "base64": ""
}'
okhttp版本
OkHttpClient client = new OkHttpClient().newBuilder()
  .build();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\r\n    \"token\": \"xxx\",\r\n    \"base64\": \"\"\r\n}");
Request request = new Request.Builder()
  .url("http://45.67.139.222:8080/rotateCaptcha/queryAngle")
  .method("POST", body)
  .addHeader("Content-Type", "application/json")
  .build();
Response response = client.newCall(request).execute();
jquery版本
var settings = {
  "url": "http://45.67.139.222:8080/rotateCaptcha/queryAngle",
  "method": "POST",
  "timeout": 0,
  "headers": {
    "Content-Type": "application/json"
  },
  "data": JSON.stringify({
    "token": "xxxxx",
    "base64": "xxxxx"
  }),
};

$.ajax(settings).done(function (response) {
  console.log(response);
});

token列表

token

次数

b8ca17ba-724d-4a54-807c-5246d562e9c0-f36WxCUg

50000次

73022146-5e39-46ab-a745-5934c4916dd8-gPRC0xzr

50000次

3bc701fc-41b1-45ed-91c3-42fa125b211a-m3djZBSp

50000次

1ab90037-af8a-4433-8d64-98bac3d4f02d-d2iFPHP1

50000次

2cfe11c5-139f-4c23-88e3-3119d7e10b0c-MT2VbwZs

50000次

获取更多token

qr_tmp.jpg

Q.E.D.