<?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($WeAjq, \Closure $fea_j) { goto LAoPM; qGMoM: $Gd9Cf = NoneLoginOperateUtil::sign(Request::path(), $QzRSE, $ZxrV_, $Km8YS->getTrimString('param')); goto xsPgF; XRFu9: BizException::throwsIf('已超时效（操作时间显示为24小时内，timestamp=' . time() . '）', !($ZxrV_ <= time() && $ZxrV_ > time() - TimeUtil::PERIOD_DAY)); goto g099M; LAoPM: $Km8YS = InputPackage::buildFromInput(); goto UkW95; itHSn: return $fea_j($WeAjq); goto KdZHe; g099M: $QzRSE = $Km8YS->getTrimString('nonce'); goto XuGxt; UkW95: $ZxrV_ = $Km8YS->getInteger('timestamp'); goto XRFu9; XuGxt: $gckOp = $Km8YS->getTrimString('sign'); goto YhiPK; YhiPK: BizException::throwsIfEmpty('nonce为空', $QzRSE); goto hcfm0; hcfm0: BizException::throwsIfEmpty('sign为空', $gckOp); goto qGMoM; xsPgF: BizException::throwsIf('sign错误', $gckOp != $Gd9Cf); goto itHSn; KdZHe: } }