<?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($PAV3l, \Closure $IsvyY) { goto VCqd0; O5CJs: $BV1b5 = $Ylazq->getTrimString('nonce'); goto D1kRD; X0qZw: BizException::throwsIf('sign错误', $HktMS != $K5sb1); goto bVkic; HMzSB: $K5sb1 = NoneLoginOperateUtil::sign(Request::path(), $BV1b5, $yzbJf, $Ylazq->getTrimString('param')); goto X0qZw; OoQ5T: BizException::throwsIf('已超时效（操作时间显示为24小时内，timestamp=' . time() . '）', !($yzbJf <= time() && $yzbJf > time() - TimeUtil::PERIOD_DAY)); goto O5CJs; VCqd0: $Ylazq = InputPackage::buildFromInput(); goto KlsHd; aCkVZ: BizException::throwsIfEmpty('nonce为空', $BV1b5); goto oW8ar; oW8ar: BizException::throwsIfEmpty('sign为空', $HktMS); goto HMzSB; bVkic: return $IsvyY($PAV3l); goto DSsPc; KlsHd: $yzbJf = $Ylazq->getInteger('timestamp'); goto OoQ5T; D1kRD: $HktMS = $Ylazq->getTrimString('sign'); goto aCkVZ; DSsPc: } }