<?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($sqTc8, \Closure $k4aFB) { goto iOZvH; iOZvH: $xI1ZI = config('env.APP_KEY'); goto mkyS6; pkM6y: $Nw6ws = InputPackage::buildFromInput(); goto Cv6KU; mkyS6: BizException::throwsIfEmpty('APP_KEY为空', $xI1ZI); goto pkM6y; id7Tx: BizException::throwsIfEmpty('nonce为空', $iu_Tz); goto aDFdp; aDFdp: BizException::throwsIfEmpty('sign为空', $BmaRj); goto UWSFT; Q6l3J: return $k4aFB($sqTc8); goto tIPub; tDoDO: $iu_Tz = $Nw6ws->getTrimString('nonce'); goto LzI4N; PECR6: BizException::throwsIf('已超时效（操作时间显示为24小时内，timestamp=' . time() . '）', !($fDxI7 <= time() && $fDxI7 > time() - TimeUtil::PERIOD_DAY)); goto tDoDO; qz2JC: BizException::throwsIf('sign错误', $BmaRj != $YX_cV); goto Q6l3J; LzI4N: $BmaRj = $Nw6ws->getTrimString('sign'); goto id7Tx; UWSFT: $YX_cV = NoneLoginOperateUtil::sign(Request::path(), $iu_Tz, $fDxI7, $Nw6ws->getTrimString('param')); goto qz2JC; Cv6KU: $fDxI7 = $Nw6ws->getInteger('timestamp'); goto PECR6; tIPub: } }