forked from AdminAnticaptcha/anticaptcha-php
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgeetest.php
92 lines (74 loc) · 2.59 KB
/
geetest.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<?php
class GeeTest extends Anticaptcha implements AntiCaptchaTaskProtocol {
private $websiteUrl;
private $websiteKey;
private $websiteChallenge;
private $geetestApiServerSubdomain;
private $geetestLib;
private $proxyType = "http";
private $proxyAddress;
private $proxyPort;
private $proxyLogin;
private $proxyPassword;
private $userAgent = "";
private $cookies = "";
public function getPostData() {
return array(
"type" => "GeeTestTask",
"websiteURL" => $this->websiteUrl,
"geetestApiServerSubdomain" => $this->geetestApiServerSubdomain,
"geetestGetLib" => $this->geetestLib,
"gt" => $this->websiteKey,
"challenge" => $this->websiteChallenge,
"proxyType" => $this->proxyType,
"proxyAddress" => $this->proxyAddress,
"proxyPort" => $this->proxyPort,
"proxyLogin" => $this->proxyLogin,
"proxyPassword" => $this->proxyPassword,
"userAgent" => $this->userAgent,
"cookies" => $this->cookies
);
}
public function setTaskInfo($taskInfo) {
$this->taskInfo = $taskInfo;
}
public function getTaskSolution() {
return $this->taskInfo->solution;
}
public function setWebsiteURL($value) {
$this->websiteUrl = $value;
}
public function setGTKey($value) {
$this->websiteKey = $value;
}
public function setChallenge($value) {
$this->websiteChallenge = $value;
}
public function setProxyType($value) {
$this->proxyType = $value;
}
public function setProxyAddress($value) {
$this->proxyAddress = $value;
}
public function setProxyPort($value) {
$this->proxyPort = $value;
}
public function setProxyLogin($value) {
$this->proxyLogin = $value;
}
public function setProxyPassword($value) {
$this->proxyPassword = $value;
}
public function setUserAgent($value) {
$this->userAgent = $value;
}
public function setCookies($value) {
$this->cookies = $value;
}
public function setAPISubdomain($value) {
$this->geetestApiServerSubdomain = $value;
}
public function setGeetestLib(string $geetestLib): void {
$this->geetestLib = $geetestLib;
}
}