<?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($YFzpa, $EPwwc = array(), $Wob_z = null) { goto c2X7_; i9tiG: $mIZxC['timestamp'] = time(); goto jGKpN; jGKpN: $mIZxC['nonce'] = RandomUtil::string(10); goto zG4CA; t_kFs: $mIZxC['sign'] = self::sign($YFzpa, $mIZxC['nonce'], $mIZxC['timestamp'], $mIZxC['param']); goto cJPVJ; c2X7_: if (null === $Wob_z) { $Wob_z = Request::domainUrl(); } goto uUdWZ; uUdWZ: $mIZxC = array(); goto i9tiG; cJPVJ: return $Wob_z . modstart_web_url($YFzpa, $mIZxC); goto B7xGl; zG4CA: $mIZxC['param'] = json_encode($EPwwc); goto t_kFs; B7xGl: } public static function sign($YFzpa, $iu_Tz, $fDxI7, $EPwwc) { goto iHduc; RaXIE: return md5($YFzpa . ':' . $xI1ZI . ':' . $iu_Tz . ':' . $fDxI7 . ':' . $EPwwc); goto EioEf; iHduc: $xI1ZI = config('env.APP_KEY'); goto rpeO_; rpeO_: BizException::throwsIfEmpty('APP_KEY为空', $xI1ZI); goto RaXIE; EioEf: } }