<?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($dQdfo, $FRVtF = array(), $VYYXv = null) { goto uN22U; uN22U: if (null === $VYYXv) { $VYYXv = Request::domainUrl(); } goto bGO0m; ZRkqP: $vJGH0['param'] = json_encode($FRVtF); goto VvRQp; qBpLY: $vJGH0['timestamp'] = time(); goto Eub1p; Eub1p: $vJGH0['nonce'] = RandomUtil::string(10); goto ZRkqP; VvRQp: $vJGH0['sign'] = self::sign($dQdfo, $vJGH0['nonce'], $vJGH0['timestamp'], $vJGH0['param']); goto BwlVW; bGO0m: $vJGH0 = array(); goto qBpLY; BwlVW: return $VYYXv . modstart_web_url($dQdfo, $vJGH0); goto km6W6; km6W6: } public static function sign($dQdfo, $Dtfx2, $y3mDB, $FRVtF) { $WjXlG = EnvUtil::securityKey(); return md5($dQdfo . ':' . $WjXlG . ':' . $Dtfx2 . ':' . $y3mDB . ':' . $FRVtF); } }