<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Nav\Type; class NavLink { public static function generate($S69tG, $quZRe = array()) { goto akPBW; RUA6r: return $S69tG; goto GM_11; Kwvwo: if (is_array($S69tG)) { $S69tG = isset($S69tG['link']) ? $S69tG['link'] : null; } goto qzbAZ; qzbAZ: if (!empty($quZRe)) { $GyZ1b = array_map(function ($kHxHl) { return '{' . $kHxHl . '}'; }, array_keys($quZRe)); $S69tG = str_replace($GyZ1b, array_values($quZRe), $S69tG); } goto RUA6r; akPBW: if (empty($S69tG)) { return ''; } goto Kwvwo; GM_11: } }