<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Util; use ModStart\Core\Exception\BizException; use ModStart\Core\Input\Request; use ModStart\Core\Util\RandomUtil; class NoneLoginOperateUtil { public static function generateUrl($JPXsz, $f_HcG = array(), $Dttgy = null) { goto NriHJ; S9MMI: $rYr4B['timestamp'] = time(); goto udqQN; ESkfL: $rYr4B['sign'] = self::sign($JPXsz, $rYr4B['nonce'], $rYr4B['timestamp'], $rYr4B['param']); goto XGoTB; XGoTB: return $Dttgy . modstart_web_url($JPXsz, $rYr4B); goto NQAr1; NriHJ: if (null === $Dttgy) { $Dttgy = Request::domainUrl(); } goto BUeNr; BUeNr: $rYr4B = array(); goto S9MMI; udqQN: $rYr4B['nonce'] = RandomUtil::string(10); goto hSvms; hSvms: $rYr4B['param'] = json_encode($f_HcG); goto ESkfL; NQAr1: } public static function sign($JPXsz, $x69y2, $eeurT, $f_HcG) { goto ktXV8; oPQAZ: BizException::throwsIfEmpty('APP_KEY为空', $jEf2t); goto YKTcL; ktXV8: $jEf2t = config('env.APP_KEY'); goto oPQAZ; YKTcL: return md5($JPXsz . ':' . $jEf2t . ':' . $x69y2 . ':' . $eeurT . ':' . $f_HcG); goto PBwgm; PBwgm: } }