<?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; use ModStart\Core\Util\SerializeUtil; class NoneLoginOperateUtil { public static function generateUrl($rcuj4, $w6bW5 = array(), $axVHY = null) { goto NT811; z4Nut: return $axVHY . modstart_web_url($rcuj4, $z__1r); goto A54En; GqLeX: $z__1r['timestamp'] = time(); goto cP6La; x23aQ: $z__1r['sign'] = self::sign($rcuj4, $z__1r['nonce'], $z__1r['timestamp'], $z__1r['param']); goto z4Nut; NT811: if (null === $axVHY) { $axVHY = Request::domainUrl(); } goto yUrHZ; bxsnY: $z__1r['param'] = SerializeUtil::jsonEncode($w6bW5); goto x23aQ; cP6La: $z__1r['nonce'] = RandomUtil::string(10); goto bxsnY; yUrHZ: $z__1r = array(); goto GqLeX; A54En: } public static function sign($rcuj4, $QzRSE, $ZxrV_, $w6bW5) { $s_vOz = EnvUtil::securityKey(); return md5($rcuj4 . ':' . $s_vOz . ':' . $QzRSE . ':' . $ZxrV_ . ':' . $w6bW5); } }