<?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 L1Qa8; WwQmQ: $wvPfs['WorkSalaryType'] = TypeUtil::dump(WorkSalaryType::class); goto Abm4R; tzcSs: foreach ($wvPfs as $ZCU8D => $mt09i) { $EZr02[] = "export const {$ZCU8D} = " . json_encode($mt09i, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT) . ';'; } goto PXzdX; rraop: $wvPfs['WorkSalaryPeriod'] = TypeUtil::dump(WorkSalaryPeriod::class); goto WwQmQ; qvamM: $wvPfs['WorkInviteStatus'] = TypeUtil::dump(WorkInviteStatus::class); goto VdHFF; jJdsq: $wvPfs['WorkApplyStatus'] = TypeUtil::dump(WorkApplyStatus::class); goto yHghB; PXzdX: return Response::raw(join('
', $EZr02), array('Content-Type' => 'text/plain')); goto btjJc; Abm4R: $wvPfs['WorkStatus'] = TypeUtil::dump(WorkStatus::class); goto OCWUi; PrXTI: $wvPfs['Education'] = TypeUtil::dump(Education::class); goto V10jA; L1Qa8: $wvPfs = array(); goto jJdsq; VdHFF: $wvPfs['WorkSalaryCashPeriod'] = TypeUtil::dump(WorkSalaryCashPeriod::class); goto rraop; V10jA: $wvPfs['Gender'] = TypeUtil::dump(Gender::class); goto iE_0O; aKCeO: $EZr02[] = '// This file is created by ' . action('\\' . __CLASS__ . '@constant') . '
'; goto tzcSs; kuoGO: $wvPfs['WorkHeightType'] = TypeUtil::dump(WorkHeightType::class); goto qvamM; mD28h: $wvPfs['IndividualStatus'] = TypeUtil::dump(IndividualStatus::class); goto PrXTI; yHghB: $wvPfs['WorkGenderType'] = TypeUtil::dump(WorkGenderType::class); goto kuoGO; OCWUi: $wvPfs['CorpStatus'] = TypeUtil::dump(CorpStatus::class); goto mD28h; iE_0O: $EZr02 = array(); goto aKCeO; btjJc: } public function app() { goto qsUIx; lkaD9: $PAESX['hashPC'] = 'v' . $r4GCq; goto kfO0K; fynz1: list($r9e7h, $iXunN) = $this->viewPaths('index'); goto n8Yta; kfO0K: $PAESX['hashLazyValue'] = array(); goto jTAx4; jTAx4: $PAESX['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 pVEeT; n8Yta: $r4GCq = date('Ymd_His', filemtime($this->viewRealpath($r9e7h))); goto lkaD9; lsKVv: return Response::jsonSuccessData($PAESX); goto P5Hm6; pVEeT: if (MemberUser::id()) { goto nckAm; PcsX4: $PAESX['user']['vip'] = MemberVip::get(); goto pnaC3; tYORy: $PAESX['user']['avatarMedium'] = AssetsUtil::fixFull($muCRy['avatarMedium'] ? $muCRy['avatarMedium'] : $PAESX['user']['avatar']); goto LatmU; aDo1f: $PAESX['user']['phone'] = $muCRy['phone']; goto TRxB2; XbdTp: if (empty($PAESX['user']['nickname'])) { $PAESX['user']['nickname'] = $PAESX['user']['username']; } goto aDo1f; KFZFu: $PAESX['user']['nickname'] = empty($muCRy['nickname']) ? null : $muCRy['nickname']; goto XbdTp; wxvgh: $PAESX['user']['email'] = $muCRy['email']; goto niGCq; Oluk0: $PAESX['user']['username'] = $muCRy['username']; goto KFZFu; pnaC3: $PAESX['user']['vipExpire'] = $muCRy['vipExpire']; goto FBsCY; nckAm: $muCRy = MemberUser::user(); goto w1IP4; KCSda: $PAESX['user']['avatar'] = AssetsUtil::fixFull($muCRy['avatar'] ? $muCRy['avatar'] : $PAESX['user']['avatar']); goto tYORy; TRxB2: $PAESX['user']['phoneVerified'] = !!$muCRy['phoneVerified']; goto wxvgh; w1IP4: $PAESX['user']['id'] = $muCRy['id']; goto KCSda; LatmU: $PAESX['user']['avatarBig'] = AssetsUtil::fixFull($muCRy['avatarBig'] ? $muCRy['avatarBig'] : $PAESX['user']['avatar']); goto Oluk0; niGCq: $PAESX['user']['emailVerified'] = !!$muCRy['emailVerified']; goto PcsX4; FBsCY: } goto lsKVv; qsUIx: $PAESX = array(); goto fynz1; P5Hm6: } }