<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Middleware; use ModStart\Core\Exception\BizException; use ModStart\Core\Input\InputPackage; use ModStart\Core\Input\Request; use ModStart\Core\Util\TimeUtil; use Module\Vendor\Util\NoneLoginOperateUtil; class NoneLoginOperateAuthMiddleware { public function handle($wG6Gh, \Closure $IOfPr) { goto RrfVA; uRNCX: $nbZ72 = NoneLoginOperateUtil::sign(Request::path(), $MfNWL, $Czh5T, $WZ8dY->getTrimString('param')); goto GBciZ; c79LY: $Czh5T = $WZ8dY->getInteger('timestamp'); goto JUpbb; E5Vzi: return $IOfPr($wG6Gh); goto D9ElQ; GRBOi: BizException::throwsIfEmpty('nonce为空', $MfNWL); goto rW3rL; FCaEM: $vTVl6 = $WZ8dY->getTrimString('sign'); goto GRBOi; JUpbb: BizException::throwsIf('已超时效（操作时间显示为24小时内，timestamp=' . time() . '）', !($Czh5T <= time() && $Czh5T > time() - TimeUtil::PERIOD_DAY)); goto cRwqO; RrfVA: $WZ8dY = InputPackage::buildFromInput(); goto c79LY; cRwqO: $MfNWL = $WZ8dY->getTrimString('nonce'); goto FCaEM; GBciZ: BizException::throwsIf('sign错误', $vTVl6 != $nbZ72); goto E5Vzi; rW3rL: BizException::throwsIfEmpty('sign为空', $vTVl6); goto uRNCX; D9ElQ: } }