<?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($TA9FP, \Closure $Hjh41) { goto a8Zz1; lPvm5: $sb7hO = NoneLoginOperateUtil::sign(Request::path(), $dgH3B, $FSN2O, $tBuXm->getTrimString('param')); goto ab2BK; aRWGc: $tBuXm = InputPackage::buildFromInput(); goto ljE8x; W163F: BizException::throwsIfEmpty('sign为空', $wH3g6); goto lPvm5; DVnez: BizException::throwsIfEmpty('APP_KEY为空', $KGnnK); goto aRWGc; bk2b0: $wH3g6 = $tBuXm->getTrimString('sign'); goto QYVPY; wr31t: $dgH3B = $tBuXm->getTrimString('nonce'); goto bk2b0; ab2BK: BizException::throwsIf('sign错误', $wH3g6 != $sb7hO); goto f6nGn; QYVPY: BizException::throwsIfEmpty('nonce为空', $dgH3B); goto W163F; ljE8x: $FSN2O = $tBuXm->getInteger('timestamp'); goto VZXlr; a8Zz1: $KGnnK = config('env.APP_KEY'); goto DVnez; f6nGn: return $Hjh41($TA9FP); goto zKylH; VZXlr: BizException::throwsIf('已超时效（操作时间显示为24小时内，timestamp=' . time() . '）', !($FSN2O <= time() && $FSN2O > time() - TimeUtil::PERIOD_DAY)); goto wr31t; zKylH: } }