<?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($MyYDh, $quZRe = array(), $OxW1Y = null) { goto rRNV4; KEwwJ: $W70lM = array(); goto qUQpp; sLRN_: $W70lM['sign'] = self::sign($MyYDh, $W70lM['nonce'], $W70lM['timestamp'], $W70lM['param']); goto GHgGb; K7Rcz: $W70lM['nonce'] = RandomUtil::string(10); goto Cwzk_; GHgGb: return $OxW1Y . modstart_web_url($MyYDh, $W70lM); goto ZztYl; Cwzk_: $W70lM['param'] = json_encode($quZRe); goto sLRN_; qUQpp: $W70lM['timestamp'] = time(); goto K7Rcz; rRNV4: if (null === $OxW1Y) { $OxW1Y = Request::domainUrl(); } goto KEwwJ; ZztYl: } public static function sign($MyYDh, $q2E_B, $Vu8zV, $quZRe) { goto QHJSQ; Gwkbu: return md5($MyYDh . ':' . $ZawiF . ':' . $q2E_B . ':' . $Vu8zV . ':' . $quZRe); goto bWuuS; KJHmV: BizException::throwsIfEmpty('APP_KEY为空', $ZawiF); goto Gwkbu; QHJSQ: $ZawiF = config('env.APP_KEY'); goto KJHmV; bWuuS: } }