<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Util; use ModStart\Core\Exception\BizException; use ModStart\Core\Input\Request; use ModStart\Core\Util\EnvUtil; use ModStart\Core\Util\RandomUtil; class NoneLoginOperateUtil { public static function generateUrl($zHIxi, $KJ3xr = array(), $jcNis = null) { goto Irj3i; UXjR6: $akIfI['sign'] = self::sign($zHIxi, $akIfI['nonce'], $akIfI['timestamp'], $akIfI['param']); goto L644O; L644O: return $jcNis . modstart_web_url($zHIxi, $akIfI); goto iTXFX; UrI2w: $akIfI = array(); goto YRXgQ; gifUG: $akIfI['param'] = json_encode($KJ3xr); goto UXjR6; Irj3i: if (null === $jcNis) { $jcNis = Request::domainUrl(); } goto UrI2w; YRXgQ: $akIfI['timestamp'] = time(); goto cd1hT; cd1hT: $akIfI['nonce'] = RandomUtil::string(10); goto gifUG; iTXFX: } public static function sign($zHIxi, $BV1b5, $yzbJf, $KJ3xr) { $LlDaj = EnvUtil::securityKey(); return md5($zHIxi . ':' . $LlDaj . ':' . $BV1b5 . ':' . $yzbJf . ':' . $KJ3xr); } }