<?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\Hire\Type\WorkApplyStatus; use Module\Hire\Type\WorkGenderType; use Module\Hire\Type\WorkHeightType; use Module\Hire\Type\WorkInviteStatus; use Module\Hire\Type\WorkSalaryCashPeriod; use Module\Hire\Type\WorkSalaryPeriod; use Module\Hire\Type\WorkSalaryType; use Module\Hire\Type\WorkStatus; use Module\Member\Auth\MemberUser; use Module\Member\Auth\MemberVip; use Module\Member\Type\Education; use Module\Member\Type\Gender; use Module\Member\Type\MemberMessageStatus; use Module\MemberCert\Type\CorpStatus; use Module\MemberCert\Type\IndividualStatus; use Module\NoteSns\Type\NoteEditorType; 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 RRaYh; HGMFQ: $otquF['WorkSalaryCashPeriod'] = TypeUtil::dump(WorkSalaryCashPeriod::class); goto JuaHf; yynuB: return Response::raw(join('
', $tYTnm), array('Content-Type' => 'text/plain')); goto k3atx; eR4OS: $otquF['Education'] = TypeUtil::dump(Education::class); goto QKa9t; wARoS: $otquF['WorkApplyStatus'] = TypeUtil::dump(WorkApplyStatus::class); goto jHSUN; RRaYh: $otquF = array(); goto wARoS; jHSUN: $otquF['WorkGenderType'] = TypeUtil::dump(WorkGenderType::class); goto yLgA7; yLgA7: $otquF['WorkHeightType'] = TypeUtil::dump(WorkHeightType::class); goto j7PvJ; rAh9C: $tYTnm[] = '// This file is created by ' . action('\\' . __CLASS__ . '@constant') . '
'; goto Cb_aQ; JuaHf: $otquF['WorkSalaryPeriod'] = TypeUtil::dump(WorkSalaryPeriod::class); goto zmHBo; j7PvJ: $otquF['WorkInviteStatus'] = TypeUtil::dump(WorkInviteStatus::class); goto HGMFQ; QKa9t: $otquF['Gender'] = TypeUtil::dump(Gender::class); goto lfqRk; lfqRk: $tYTnm = array(); goto rAh9C; zmHBo: $otquF['WorkSalaryType'] = TypeUtil::dump(WorkSalaryType::class); goto B6Wsv; B6Wsv: $otquF['WorkStatus'] = TypeUtil::dump(WorkStatus::class); goto RRDPM; RRDPM: $otquF['CorpStatus'] = TypeUtil::dump(CorpStatus::class); goto tucf_; tucf_: $otquF['IndividualStatus'] = TypeUtil::dump(IndividualStatus::class); goto eR4OS; Cb_aQ: foreach ($otquF as $qAXfP => $FG36B) { $tYTnm[] = "export const {$qAXfP} = " . json_encode($FG36B, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT) . ';'; } goto yynuB; k3atx: } public function app() { goto ZqxuD; Z1kIq: if (MemberUser::id()) { goto AbDSD; rjqLR: $xOjNB['user']['avatar'] = AssetsUtil::fixFull($Fynne['avatar'] ? $Fynne['avatar'] : $xOjNB['user']['avatar']); goto g0sni; FbmV7: $xOjNB['user']['email'] = $Fynne['email']; goto ibie9; KydoK: $xOjNB['user']['vip'] = MemberVip::get(); goto gTBZP; iUPnO: $xOjNB['user']['username'] = $Fynne['username']; goto LhD_6; VB5ak: if (empty($xOjNB['user']['nickname'])) { $xOjNB['user']['nickname'] = $xOjNB['user']['username']; } goto UB7yY; hNgPd: $xOjNB['user']['avatarBig'] = AssetsUtil::fixFull($Fynne['avatarBig'] ? $Fynne['avatarBig'] : $xOjNB['user']['avatar']); goto iUPnO; gTBZP: $xOjNB['user']['vipExpire'] = $Fynne['vipExpire']; goto ceKMT; ycUWB: $xOjNB['user']['phoneVerified'] = !!$Fynne['phoneVerified']; goto FbmV7; UB7yY: $xOjNB['user']['phone'] = $Fynne['phone']; goto ycUWB; ibie9: $xOjNB['user']['emailVerified'] = !!$Fynne['emailVerified']; goto KydoK; LhD_6: $xOjNB['user']['nickname'] = empty($Fynne['nickname']) ? null : $Fynne['nickname']; goto VB5ak; g0sni: $xOjNB['user']['avatarMedium'] = AssetsUtil::fixFull($Fynne['avatarMedium'] ? $Fynne['avatarMedium'] : $xOjNB['user']['avatar']); goto hNgPd; bgkr3: $xOjNB['user']['id'] = $Fynne['id']; goto rjqLR; AbDSD: $Fynne = MemberUser::user(); goto bgkr3; ceKMT: } goto dcg96; sBXM5: $xOjNB['hashLazyValue'] = array(); goto RBITy; ZqxuD: $xOjNB = array(); goto jgJCU; dcg96: return Response::jsonSuccessData($xOjNB); goto cckdC; prOYW: $xOjNB['hashPC'] = 'v' . $cFvVQ; goto sBXM5; jgJCU: list($hcjKE, $Nm84g) = $this->viewPaths('index'); goto tR8zl; tR8zl: $cFvVQ = date('Ymd_His', filemtime($this->viewRealpath($hcjKE))); goto prOYW; RBITy: $xOjNB['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 Z1kIq; cckdC: } }