<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Vendor\Util; use ModStart\Core\Exception\BizException; use ModStart\Core\Input\Request; use ModStart\Core\Util\RandomUtil; class NoneLoginOperateUtil { public static function generateUrl($ucbhG, $uxJUJ = array(), $o1RSB = null) { goto ySPTM; oheD3: $HZcDg['sign'] = self::sign($ucbhG, $HZcDg['nonce'], $HZcDg['timestamp'], $HZcDg['param']); goto uJU0A; s60kw: $HZcDg['nonce'] = RandomUtil::string(10); goto h2Spo; h2Spo: $HZcDg['param'] = json_encode($uxJUJ); goto oheD3; uJU0A: return $o1RSB . modstart_web_url($ucbhG, $HZcDg); goto LI6iH; JkcE0: $HZcDg = array(); goto IhQGr; ySPTM: if (null === $o1RSB) { $o1RSB = Request::domainUrl(); } goto JkcE0; IhQGr: $HZcDg['timestamp'] = time(); goto s60kw; LI6iH: } public static function sign($ucbhG, $dgH3B, $FSN2O, $uxJUJ) { goto rhZvL; KG9VP: BizException::throwsIfEmpty('APP_KEY为空', $KGnnK); goto jTSbb; jTSbb: return md5($ucbhG . ':' . $KGnnK . ':' . $dgH3B . ':' . $FSN2O . ':' . $uxJUJ); goto WGl13; rhZvL: $KGnnK = config('env.APP_KEY'); goto KG9VP; WGl13: } }