Total Complexity | 3 |
Total Lines | 56 |
Duplicated Lines | 0 % |
Coverage | 0% |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | <?php |
||
7 | class TCaptcha extends AbstractPlugin |
||
8 | { |
||
9 | const TICKET_VERIFY = 'https://ssl.captcha.qq.com/ticket/verify'; |
||
10 | |||
11 | const RESPONSE_SUCCESS = 1; |
||
12 | |||
13 | protected $aid; |
||
14 | protected $appSecretKey; |
||
15 | |||
16 | /** |
||
17 | * Get the method name. |
||
18 | * |
||
19 | * @return string |
||
20 | */ |
||
21 | public function getMethod() |
||
24 | } |
||
25 | |||
26 | /** |
||
27 | * @param $aid |
||
28 | * @param $appSecretKey |
||
29 | * |
||
30 | * @return $this |
||
31 | */ |
||
32 | public function handle($aid, $appSecretKey) |
||
33 | { |
||
34 | $this->aid = $aid; |
||
35 | $this->appSecretKey = $appSecretKey; |
||
36 | |||
37 | return $this; |
||
38 | } |
||
39 | |||
40 | /** |
||
41 | * @param $ticket |
||
42 | * @param $randStr |
||
43 | * @param $userIP |
||
44 | * |
||
45 | * @return mixed |
||
46 | */ |
||
47 | public function verify($ticket, $randStr, $userIP) |
||
63 | } |
||
64 | } |
||
65 |