<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace App\Api\Controller; use ModStart\Core\Assets\AssetsUtil; use ModStart\Core\Input\Response; use ModStart\Core\Type\TypeUtil; use ModStart\Core\Util\ConstantUtil; use Module\Doc\Type\DocType; use Module\Doc\Type\DocVisit; use Module\Member\Auth\MemberUser; use Module\Member\Auth\MemberVip; use Module\Member\Type\MemberMessageStatus; use Module\Question\Api\Controller\QuestionTagController; use Module\Shop\Type\GoodsSaleStatus; use Module\Vendor\Cache\LazyValueUtil; use Module\Vendor\Support\ResponseCodes; class ConfigController extends BaseController { public function constant() { goto kHta6; kHta6: $nUKIk = array(); goto RcwCH; RcwCH: $nUKIk['GoodsSaleStatus'] = TypeUtil::dump(GoodsSaleStatus::class); goto OwWqd; odFjX: foreach ($nUKIk as $kQp3Q => $OYdPO) { $kxDXb[] = "export const {$kQp3Q} = " . json_encode($OYdPO, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT) . ';'; } goto Qt4bM; Pb__7: $kxDXb[] = '// This file is created by ' . action('\\' . __CLASS__ . '@constant') . '
'; goto odFjX; OwWqd: $kxDXb = array(); goto Pb__7; Qt4bM: return Response::raw(join('
', $kxDXb), array('Content-Type' => 'text/plain')); goto ws7OV; ws7OV: } public function app() { goto G42ou; EqbLa: $Eq_0k['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 woTSi; G42ou: $Eq_0k = array(); goto ItzFR; ItzFR: list($gE2Vm, $r07FA) = $this->viewPaths('index'); goto RoroI; WWT7T: $Eq_0k['hashPC'] = 'v' . $zIO5O; goto w5oE2; w5oE2: $Eq_0k['hashLazyValue'] = array(); goto EqbLa; woTSi: if (MemberUser::id()) { goto Ytgw2; mWjEw: $Eq_0k['user']['phoneVerified'] = !!$zu4q7['phoneVerified']; goto tiiua; xnY74: $Eq_0k['user']['vipExpire'] = $zu4q7['vipExpire']; goto pIxXd; kWnZe: $Eq_0k['user']['nickname'] = empty($zu4q7['nickname']) ? null : $zu4q7['nickname']; goto QAVEe; Pcro7: $Eq_0k['user']['avatarMedium'] = AssetsUtil::fixFull($zu4q7['avatarMedium'] ? $zu4q7['avatarMedium'] : $Eq_0k['user']['avatar']); goto vAtEY; QAVEe: if (empty($Eq_0k['user']['nickname'])) { $Eq_0k['user']['nickname'] = $Eq_0k['user']['username']; } goto OnN5G; vAtEY: $Eq_0k['user']['avatarBig'] = AssetsUtil::fixFull($zu4q7['avatarBig'] ? $zu4q7['avatarBig'] : $Eq_0k['user']['avatar']); goto wC42g; tiiua: $Eq_0k['user']['email'] = $zu4q7['email']; goto H3Mio; OnN5G: $Eq_0k['user']['phone'] = $zu4q7['phone']; goto mWjEw; nN_3a: $Eq_0k['user']['id'] = $zu4q7['id']; goto IWnkS; Ytgw2: $zu4q7 = MemberUser::user(); goto nN_3a; rHNpS: $Eq_0k['user']['vip'] = MemberVip::get(); goto xnY74; wC42g: $Eq_0k['user']['username'] = $zu4q7['username']; goto kWnZe; IWnkS: $Eq_0k['user']['avatar'] = AssetsUtil::fixFull($zu4q7['avatar'] ? $zu4q7['avatar'] : $Eq_0k['user']['avatar']); goto Pcro7; H3Mio: $Eq_0k['user']['emailVerified'] = !!$zu4q7['emailVerified']; goto rHNpS; pIxXd: } goto T1ISw; T1ISw: return Response::jsonSuccessData($Eq_0k); goto KYm1p; RoroI: $zIO5O = date('Ymd_His', filemtime($this->viewRealpath($gE2Vm))); goto WWT7T; KYm1p: } }