Beispiel #1
0
 /**
  * @return array
  * @throws \Exception
  */
 public function parse()
 {
     $request = parent::parse();
     parse_str($request, $post);
     $sign = $post['sign'];
     unset($post['sign']);
     if ($sign !== md5(json_encode($post) . $this->_crypt_key)) {
         throw new \Exception();
     }
     return $post;
 }
Beispiel #2
0
 /**
  * @return mixed
  */
 public function parse()
 {
     $parse = parent::parse();
     $this->outputFile($parse);
     return $parse;
 }