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() |
||
25 | |||
26 | /** |
||
27 | * @param $aid |
||
28 | * @param $appSecretKey |
||
29 | * |
||
30 | * @return $this |
||
31 | */ |
||
32 | public function handle($aid, $appSecretKey) |
||
39 | |||
40 | /** |
||
41 | * @param $ticket |
||
42 | * @param $randStr |
||
43 | * @param $userIP |
||
44 | * |
||
45 | * @return mixed |
||
46 | */ |
||
47 | public function verify($ticket, $randStr, $userIP) |
||
64 | } |