Example #1
0
 private function checkHash($params)
 {
     if ($params && $params['hash']) {
         $client = new Client();
         $result = $client->findByHash($params['hash']);
         return $result ? true : false;
     } else {
         return false;
     }
 }