<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Core\Util; class NumberUtil { public static function decToD62($sEY00) { goto WAuM_; DQbZ2: do { $uotzZ = $yIoxR[bcmod($sEY00, $Gp4Ek)] . $uotzZ; $sEY00 = bcdiv($sEY00, $Gp4Ek); } while ($sEY00 > 0); goto rDtke; WAuM_: $Gp4Ek = 62; goto z5Cgg; z5Cgg: $yIoxR = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; goto nwVQB; rDtke: return $uotzZ; goto Fy5r6; nwVQB: $uotzZ = ''; goto DQbZ2; Fy5r6: } public static function d62ToDec($sEY00) { goto oAhIS; vuXj1: $yIoxR = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; goto y1OKu; ahwJq: $BgoVo = 0; goto b8dSK; oAhIS: $RNE_j = 62; goto p43JW; p43JW: $sEY00 = strval($sEY00); goto vuXj1; b8dSK: for ($K3Ni_ = 0; $K3Ni_ < $ywd9Z; $K3Ni_++) { $BQdFN = strpos($yIoxR, $sEY00[$K3Ni_]); $BgoVo = bcadd(bcmul(bcpow($RNE_j, $ywd9Z - $K3Ni_ - 1), $BQdFN), $BgoVo); } goto nvCaA; y1OKu: $ywd9Z = strlen($sEY00); goto ahwJq; nvCaA: return $BgoVo; goto Zc_A2; Zc_A2: } }