👉Tiktok Captcha
Last updated
{
"Code": 0,
"TaskId": 123456,
"Message": "OK"
}{
"Code": 1,
"Message": "Error description"
}{
"Code": 0,
"Status": "PENDING",
"Data": null
}{
"Code": 0,
"Status": "PROCESSING",
"Data": null
}{
"Code": 0,
"Status": "ERROR",
"Message": "Error message detail"
"Data": null
}{
"Code": 0,
"Status": "SUCCESS",
"Data": {
"offset": 78, // Drag to right 78px
"x": 210,
"y": 652 // point button slide
}
}{
"Code": 0,
"Status": "SUCCESS",
"Data": {
"x1y1x2y2":"678|427|540|564",
"raw":"0.61413,0.62064|0.48913,0.819767" // x1,y1|x2,y2 ...
}
}{
"Code": 0,
"Status": "SUCCESS",
"Data": {
"angle": 78
}
}{
"Code": 0,
"Status": "SUCCESS",
"Data": {
"angle": 78,
"point_slide": {"x": 210, "y": 652} // point button slide
}
}# Tính offset
offset = angle * width * 0.00446837493
# hoặc
offset = angle * (width_slide/180)# Some code (TIKTOK_ROTATE_APP)
response = {
"Code": 0,
"Status": "SUCCESS",
"Data": {
"angle": 78,
"point_slide": {"x": 210, "y": 652} // point button slide
}
}
# Lấy kết quả 'angle' trong phản hồi
angle = response["Data"]["angle"]
# Tính offset
# offset = angle * width * 0.00446837493
# hoặc
offset = angle * (width_slide/180)
# Tính lại tọa độ để kéo (trên app tiktok)
x1 = response["Data"]["point_slide"]["x"]
y1 = y2 = response["Data"]["point_slide"]["y"]
x2 = x1 + offset
ADB_exec(f"adb shell input touchscreen swipe {x1} {y1} {x2} {y2}")# Some code (TIKTOK_OBJ)
response = {
"raw": "0.61413,0.62064|0.48913,0.819767"
}
for pn in response['raw'].split('|'):
xn, yn = pn.split(',')
xn, yn = float(xn), float(yn)
x = int(xn * image.renderWidth)
y = int(xn * image.renderHeight)
click(x, y)# Tiktok thêm một số tỉ lệ khiến cho kéo theo offset không chính xác
# (kéo 45px nhưng mảnh ghép chạy đến 57px rồi)
# Nếu bị thì fix bằng công thức sau
offset = offset * (45 / 57)