<?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($YZyN8, \Closure $Qvmbq) { goto O9ZQe; x02aV: return $Qvmbq($YZyN8); goto Ixq6j; eUH_Z: BizException::throwsIfEmpty('sign为空', $aYoRr); goto EZTtR; G5dz4: BizException::throwsIf('已超时效（操作时间显示为24小时内，timestamp=' . time() . '）', !($eeurT <= time() && $eeurT > time() - TimeUtil::PERIOD_DAY)); goto IDNEw; S2ncS: BizException::throwsIf('sign错误', $aYoRr != $HC5nE); goto x02aV; O9ZQe: $jEf2t = config('env.APP_KEY'); goto BREIP; IDNEw: $x69y2 = $OPo_x->getTrimString('nonce'); goto i3xGC; vAMh9: BizException::throwsIfEmpty('nonce为空', $x69y2); goto eUH_Z; EZTtR: $HC5nE = NoneLoginOperateUtil::sign(Request::path(), $x69y2, $eeurT, $OPo_x->getTrimString('param')); goto S2ncS; k0_dQ: $eeurT = $OPo_x->getInteger('timestamp'); goto G5dz4; K1Ic_: $OPo_x = InputPackage::buildFromInput(); goto k0_dQ; BREIP: BizException::throwsIfEmpty('APP_KEY为空', $jEf2t); goto K1Ic_; i3xGC: $aYoRr = $OPo_x->getTrimString('sign'); goto vAMh9; Ixq6j: } }