<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Core\Util; class SignUtil { public static function check($H8a6_, $dUOod, $dNWc8) { goto s34p7; uWFUZ: if ($H8a6_ == self::common($dUOod, $dNWc8, 'urlencode')) { return true; } goto mvJTa; ZsO31: return false; goto QoKEs; mvJTa: if ($H8a6_ == self::common($dUOod, $dNWc8, 'rawurlencode')) { return true; } goto ZsO31; s34p7: if ($H8a6_ == self::common($dUOod, $dNWc8)) { return true; } goto uWFUZ; QoKEs: } public static function common($dUOod, $dNWc8, $HljxH = 'trim', $nt1TU = 'app_secret') { goto HOOQ6; HOOQ6: ksort($dUOod, SORT_STRING); goto V6X_U; w5P25: $AvSl6[] = $nt1TU . '=' . $dNWc8; goto zNfMD; V6X_U: $AvSl6 = array(); goto W28ka; BSP22: $H8a6_ = md5($AvSl6); goto gKE0Q; gKE0Q: return $H8a6_; goto lI3W5; zNfMD: $AvSl6 = join('&', $AvSl6); goto BSP22; W28ka: foreach ($dUOod as $Fkd1C => $pk5fc) { $AvSl6[] = $Fkd1C . '=' . $HljxH($pk5fc); } goto w5P25; lI3W5: } public static function checkWithoutSecret($H8a6_, $dUOod, $bD3WW = null) { goto ynAWf; R8Qx8: return false; goto fWqEv; roFzk: if ($H8a6_ == self::commonWithoutSecret($dUOod, $bD3WW, 'rawurlencode')) { return true; } goto R8Qx8; ynAWf: if ($H8a6_ == self::commonWithoutSecret($dUOod, $bD3WW)) { return true; } goto roFzk; fWqEv: } public static function commonWithoutSecret($dUOod, $bD3WW = null, $HljxH = 'urlencode') { goto gwfdA; btv9c: if ($bD3WW) { $AvSl6 = $bD3WW . '&' . $AvSl6; } goto p6LLf; gwfdA: ksort($dUOod, SORT_STRING); goto IH6xm; E7Dby: return $H8a6_; goto uPuL_; p6LLf: $H8a6_ = md5($AvSl6); goto E7Dby; IH6xm: $AvSl6 = array(); goto g93Db; q28KN: $AvSl6 = join('&', $AvSl6); goto btv9c; g93Db: foreach ($dUOod as $Fkd1C => $pk5fc) { $AvSl6[] = $Fkd1C . '=' . $HljxH($pk5fc); } goto q28KN; uPuL_: } }