<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace App\Api\Controller; use ModStart\Core\Assets\AssetsUtil; use ModStart\Core\Input\Response; use ModStart\Core\Type\TypeUtil; use Module\Member\Auth\MemberUser; use Module\Member\Auth\MemberVip; use Module\Res\AssetAccess\Type\CreditStatus; use Module\Res\AssetAccess\Type\FreeStatus; use Module\Res\AssetAccess\Type\MoneyStatus; use Module\Res\Type\ResAssetFileType; class ConfigController extends BaseController { public function constant() { goto ab_pf; ab_pf: $Dl23R = array(); goto wvzxs; wvzxs: $Dl23R['ResAssetFileType'] = TypeUtil::dump(ResAssetFileType::class); goto AIssj; Cg14B: $ota5X = array(); goto ISPly; ptmDS: foreach ($Dl23R as $J2ljJ => $Do2JX) { $ota5X[] = "export const {$J2ljJ} = " . json_encode($Do2JX, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT) . ';'; } goto UH5OF; WFLTi: $Dl23R['MoneyStatus'] = TypeUtil::dump(MoneyStatus::class); goto Cg14B; AIssj: $Dl23R['FreeStatus'] = TypeUtil::dump(FreeStatus::class); goto f09FR; UH5OF: return Response::raw(join('
', $ota5X), array('Content-Type' => 'text/plain')); goto zuXRH; ISPly: $ota5X[] = '// This file is created by ' . action('\\' . __CLASS__ . '@constant') . '
'; goto ptmDS; f09FR: $Dl23R['CreditStatus'] = TypeUtil::dump(CreditStatus::class); goto WFLTi; zuXRH: } public function app() { goto wYf01; JRKsT: $QZaNP['hashLazyValue'] = array(); goto Fsa6D; hyhjf: $QZaNP['hashPC'] = 'v' . $vHP0d; goto JRKsT; mILIc: list($ZzIKp, $x8c8Q) = $this->viewPaths('index'); goto HLVGz; eKcAW: return Response::jsonSuccessData($QZaNP); goto IauRC; HLVGz: $vHP0d = date('Ymd_His', filemtime($this->viewRealpath($ZzIKp))); goto hyhjf; Fsa6D: $QZaNP['user'] = array('id' => 0, 'avatar' => AssetsUtil::fixFull('asset/image/avatar.png'), 'avatarMedium' => AssetsUtil::fixFull('asset/image/avatar.png'), 'avatarBig' => AssetsUtil::fixFull('asset/image/avatar.png'), 'nickname' => '', 'username' => '', 'phone' => '', 'phoneVerified' => false, 'email' => '', 'emailVerified' => false, 'vip' => null, 'vipExpire' => null); goto FeZWb; FeZWb: if (MemberUser::id()) { goto F_eHG; gaczs: $QZaNP['user']['phoneVerified'] = !!$LGjOF['phoneVerified']; goto Pt7vd; Pt7vd: $QZaNP['user']['email'] = $LGjOF['email']; goto J4cvd; HHQzs: $QZaNP['user']['id'] = $LGjOF['id']; goto BHgcT; tkIvC: if (empty($QZaNP['user']['nickname'])) { $QZaNP['user']['nickname'] = $QZaNP['user']['username']; } goto PvVDi; i2qui: $QZaNP['user']['avatarMedium'] = AssetsUtil::fixFull($LGjOF['avatarMedium'] ? $LGjOF['avatarMedium'] : $QZaNP['user']['avatar']); goto ifJwr; aJfzI: $QZaNP['user']['nickname'] = empty($LGjOF['nickname']) ? null : $LGjOF['nickname']; goto tkIvC; PvVDi: $QZaNP['user']['phone'] = $LGjOF['phone']; goto gaczs; aF3xT: $QZaNP['user']['vipExpire'] = $LGjOF['vipExpire']; goto NdI29; JpNCI: $QZaNP['user']['username'] = $LGjOF['username']; goto aJfzI; F_eHG: $LGjOF = MemberUser::user(); goto HHQzs; AyM7O: $QZaNP['user']['vip'] = MemberVip::get(); goto aF3xT; J4cvd: $QZaNP['user']['emailVerified'] = !!$LGjOF['emailVerified']; goto AyM7O; BHgcT: $QZaNP['user']['avatar'] = AssetsUtil::fixFull($LGjOF['avatar'] ? $LGjOF['avatar'] : $QZaNP['user']['avatar']); goto i2qui; ifJwr: $QZaNP['user']['avatarBig'] = AssetsUtil::fixFull($LGjOF['avatarBig'] ? $LGjOF['avatarBig'] : $QZaNP['user']['avatar']); goto JpNCI; NdI29: } goto eKcAW; wYf01: $QZaNP = array(); goto mILIc; IauRC: } }