client = new CurlService(); } public function check($RendStr, $Ticket, $ip) { if (empty($RendStr) || empty($Ticket) || empty($ip)) { return false; } $data= [ 'appId' => $this->appId, 'appKey' => $this->appKey, 'AppSecretKey' => $this->AppSecretKey, 'CaptchaAppId' => $this->CaptchaAppId, 'RendStr' => $RendStr, 'Ticket' => $Ticket, 'IP' => $ip ]; $res = $this->client->post("https://api.253.com/open/txyzm/yzm-v2",$data); if($res->code == '200000'){ return true; }else{ return false; } } }