<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace ModStart\Core\Type; use Illuminate\Support\Str; use ModStart\Core\Util\ConstantUtil; class TypeUtil { public static function name($mlDa5, $tzAUI) { goto mP42W; OV67Y: foreach ($I_JnK as $U9AsU => $ohYVl) { if ($U9AsU == $tzAUI) { return $ohYVl; } } goto nwiA3; nwiA3: return null; goto Db5K1; mP42W: $I_JnK = $mlDa5::getList(); goto OV67Y; Db5K1: } public static function dump($c37e9) { goto Hv5Vn; JAbDA: foreach ($sk8MQ as $m1RYi => $tzAUI) { goto UTrbm; lDdKg: $X2SsU[$m1RYi]['value'] = $tzAUI; goto Y8Uft; Y8Uft: $X2SsU[$m1RYi]['name'] = isset($NnNhz[$tzAUI]) ? $NnNhz[$tzAUI] : null; goto Zu0vT; UTrbm: $X2SsU[$m1RYi]['key'] = $m1RYi; goto lDdKg; Zu0vT: } goto DBzi6; Hv5Vn: $sk8MQ = ConstantUtil::dump($c37e9); goto y5LMr; DBzi6: return $X2SsU; goto eCqdU; y5LMr: $NnNhz = $c37e9::getList(); goto JAbDA; eCqdU: } public static function colorGuessMap($n0W55) { goto IkvGR; IkvGR: static $biOUg = array(); goto PqSTA; VEQTH: foreach (ConstantUtil::dump($n0W55) as $U9AsU => $ohYVl) { $U9AsU = strtolower($U9AsU); foreach ($vnDx3 as $wNzPR => $g0m3U) { if (Str::contains($U9AsU, $wNzPR)) { $NnNhz[$ohYVl] = $g0m3U; break; } } } goto bN5Ke; xjtOO: return $NnNhz; goto OJ7iI; Px1ve: $vnDx3 = array('fail' => 'danger', 'error' => 'danger', 'wait_verify' => 'danger', 'wait_pay' => 'warning', 'danger' => 'warning', 'running' => 'warning', 'success' => 'success', 'verified' => 'success', 'pass' => 'success', 'reject' => 'danger', 'wait' => 'muted', 'canceled' => 'muted', 'completed' => 'success', 'finish' => 'success', 'converting' => 'warning', 'ignore' => 'muted', 'expired' => 'muted', 'info' => 'primary', 'unread' => 'danger', 'read' => 'muted', 'processed' => 'success', 'verifying' => 'warning', 'online' => 'success', 'payed' => 'success', 'wait_process' => 'warning'); goto VEQTH; DKhsE: $NnNhz = array(); goto Px1ve; PqSTA: if (isset($biOUg[$n0W55])) { return $biOUg[$n0W55]; } goto DKhsE; bN5Ke: $biOUg[$n0W55] = $NnNhz; goto xjtOO; OJ7iI: } }