<?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($mZfPT, $qOrzw = array(), $bjK0X = null) { goto XF9l8; yJrI5: return $bjK0X . modstart_web_url($mZfPT, $IHvTH); goto RD80i; M98zV: $IHvTH['nonce'] = RandomUtil::string(10); goto OqaKG; XF9l8: if (null === $bjK0X) { $bjK0X = Request::domainUrl(); } goto irPD8; nDM6t: $IHvTH['timestamp'] = time(); goto M98zV; OqaKG: $IHvTH['param'] = json_encode($qOrzw); goto xO6tK; xO6tK: $IHvTH['sign'] = self::sign($mZfPT, $IHvTH['nonce'], $IHvTH['timestamp'], $IHvTH['param']); goto yJrI5; irPD8: $IHvTH = array(); goto nDM6t; RD80i: } public static function sign($mZfPT, $MfNWL, $Czh5T, $qOrzw) { $VbV7K = EnvUtil::securityKey(); return md5($mZfPT . ':' . $VbV7K . ':' . $MfNWL . ':' . $Czh5T . ':' . $qOrzw); } }