<?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($v3OdF, \Closure $tBe4X) { goto oePw2; LEO4S: $bMa8H = $fAvwi->getTrimString('sign'); goto JlU2J; tcj05: $gIJ_n = $fAvwi->getInteger('timestamp'); goto C_D9G; JlU2J: BizException::throwsIfEmpty('nonce为空', $NIM6j); goto NuQ4g; PVrmP: $eGIzX = NoneLoginOperateUtil::sign(Request::path(), $NIM6j, $gIJ_n, $fAvwi->getTrimString('param')); goto PSF0_; mjTAB: $NIM6j = $fAvwi->getTrimString('nonce'); goto LEO4S; NuQ4g: BizException::throwsIfEmpty('sign为空', $bMa8H); goto PVrmP; C_D9G: BizException::throwsIf('已超时效（操作时间显示为24小时内，timestamp=' . time() . '）', !($gIJ_n <= time() && $gIJ_n > time() - TimeUtil::PERIOD_DAY)); goto mjTAB; oePw2: $fAvwi = InputPackage::buildFromInput(); goto tcj05; cbsZE: return $tBe4X($v3OdF); goto hKI1X; PSF0_: BizException::throwsIf('sign错误', $bMa8H != $eGIzX); goto cbsZE; hKI1X: } }