<?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($HheJC, $mzzZ3 = array(), $zue4M = null) { goto wJPEm; SRepp: return $zue4M . modstart_web_url($HheJC, $OfUol); goto wZBKR; icmnI: $OfUol['nonce'] = RandomUtil::string(10); goto F4Cda; Zp8SA: $OfUol['timestamp'] = time(); goto icmnI; jdikK: $OfUol['sign'] = self::sign($HheJC, $OfUol['nonce'], $OfUol['timestamp'], $OfUol['param']); goto SRepp; F4Cda: $OfUol['param'] = json_encode($mzzZ3); goto jdikK; IBjGD: $OfUol = array(); goto Zp8SA; wJPEm: if (null === $zue4M) { $zue4M = Request::domainUrl(); } goto IBjGD; wZBKR: } public static function sign($HheJC, $NIM6j, $gIJ_n, $mzzZ3) { $wqn1u = EnvUtil::securityKey(); return md5($HheJC . ':' . $wqn1u . ':' . $NIM6j . ':' . $gIJ_n . ':' . $mzzZ3); } }