<?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($gvkdv, \Closure $Ehea7) { goto Xfq1U; b_HqQ: return $Ehea7($gvkdv); goto iSXMr; oH_Qg: BizException::throwsIf('已超时效（操作时间显示为24小时内，timestamp=' . time() . '）', !($Vu8zV <= time() && $Vu8zV > time() - TimeUtil::PERIOD_DAY)); goto dAayi; uS07n: $Q9nmo = InputPackage::buildFromInput(); goto V6qvi; iSCXH: BizException::throwsIfEmpty('APP_KEY为空', $ZawiF); goto uS07n; dAayi: $q2E_B = $Q9nmo->getTrimString('nonce'); goto kOMrU; mEwjQ: BizException::throwsIfEmpty('sign为空', $hBGNc); goto Gi6Ko; Gi6Ko: $IT7Sr = NoneLoginOperateUtil::sign(Request::path(), $q2E_B, $Vu8zV, $Q9nmo->getTrimString('param')); goto G9hg4; V6qvi: $Vu8zV = $Q9nmo->getInteger('timestamp'); goto oH_Qg; G9hg4: BizException::throwsIf('sign错误', $hBGNc != $IT7Sr); goto b_HqQ; Xfq1U: $ZawiF = config('env.APP_KEY'); goto iSCXH; kOMrU: $hBGNc = $Q9nmo->getTrimString('sign'); goto LMR3H; LMR3H: BizException::throwsIfEmpty('nonce为空', $q2E_B); goto mEwjQ; iSXMr: } }