<?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 yQZg4; Fl1tu: foreach ($b2G6q as $drzJb => $ml4t7) { $DwF3Z[] = "export const {$drzJb} = " . json_encode($ml4t7, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT) . ';'; } goto LeTy3; lWEQQ: $DwF3Z = array(); goto vGfFh; vGfFh: $DwF3Z[] = '// This file is created by ' . action('\\' . __CLASS__ . '@constant') . '
'; goto Fl1tu; hOYhb: $b2G6q['WorkStatus'] = TypeUtil::dump(WorkStatus::class); goto tyIvf; qdP0B: $b2G6q['WorkApplyStatus'] = TypeUtil::dump(WorkApplyStatus::class); goto IkHZL; iB4kB: $b2G6q['WorkSalaryPeriod'] = TypeUtil::dump(WorkSalaryPeriod::class); goto W3fGA; DI023: $b2G6q['Education'] = TypeUtil::dump(Education::class); goto qVyFi; qVyFi: $b2G6q['Gender'] = TypeUtil::dump(Gender::class); goto lWEQQ; jsK5J: $b2G6q['IndividualStatus'] = TypeUtil::dump(IndividualStatus::class); goto DI023; vyuvK: $b2G6q['WorkHeightType'] = TypeUtil::dump(WorkHeightType::class); goto imPlc; tyIvf: $b2G6q['CorpStatus'] = TypeUtil::dump(CorpStatus::class); goto jsK5J; LeTy3: return Response::raw(join('
', $DwF3Z), array('Content-Type' => 'text/plain')); goto B7qs4; FabJC: $b2G6q['WorkSalaryCashPeriod'] = TypeUtil::dump(WorkSalaryCashPeriod::class); goto iB4kB; IkHZL: $b2G6q['WorkGenderType'] = TypeUtil::dump(WorkGenderType::class); goto vyuvK; imPlc: $b2G6q['WorkInviteStatus'] = TypeUtil::dump(WorkInviteStatus::class); goto FabJC; W3fGA: $b2G6q['WorkSalaryType'] = TypeUtil::dump(WorkSalaryType::class); goto hOYhb; yQZg4: $b2G6q = array(); goto qdP0B; B7qs4: } public function app() { goto lNdQj; VnQpB: $CQ28F['hashPC'] = 'v' . $YVVa6; goto Kkx45; ao1W9: list($Lsocu, $iB8Al) = $this->viewPaths('index'); goto MfE81; Kkx45: $CQ28F['hashLazyValue'] = array(); goto J4aF2; lNdQj: $CQ28F = array(); goto ao1W9; MfE81: $YVVa6 = date('Ymd_His', filemtime($this->viewRealpath($Lsocu))); goto VnQpB; zraUa: if (MemberUser::id()) { goto DAqAZ; oz7lC: $CQ28F['user']['id'] = $ylNOY['id']; goto wXOWc; FIJoi: $CQ28F['user']['avatarBig'] = AssetsUtil::fixFull($ylNOY['avatarBig'] ? $ylNOY['avatarBig'] : $CQ28F['user']['avatar']); goto UZLcX; jAich: $CQ28F['user']['vip'] = MemberVip::get(); goto swGd6; dcCgP: $CQ28F['user']['emailVerified'] = !!$ylNOY['emailVerified']; goto jAich; DAqAZ: $ylNOY = MemberUser::user(); goto oz7lC; GTfZS: $CQ28F['user']['avatarMedium'] = AssetsUtil::fixFull($ylNOY['avatarMedium'] ? $ylNOY['avatarMedium'] : $CQ28F['user']['avatar']); goto FIJoi; zrWgZ: $CQ28F['user']['phone'] = $ylNOY['phone']; goto HMab7; swGd6: $CQ28F['user']['vipExpire'] = $ylNOY['vipExpire']; goto i_HPT; EUJgG: if (empty($CQ28F['user']['nickname'])) { $CQ28F['user']['nickname'] = $CQ28F['user']['username']; } goto zrWgZ; HeUns: $CQ28F['user']['nickname'] = empty($ylNOY['nickname']) ? null : $ylNOY['nickname']; goto EUJgG; HMab7: $CQ28F['user']['phoneVerified'] = !!$ylNOY['phoneVerified']; goto x9gvI; wXOWc: $CQ28F['user']['avatar'] = AssetsUtil::fixFull($ylNOY['avatar'] ? $ylNOY['avatar'] : $CQ28F['user']['avatar']); goto GTfZS; x9gvI: $CQ28F['user']['email'] = $ylNOY['email']; goto dcCgP; UZLcX: $CQ28F['user']['username'] = $ylNOY['username']; goto HeUns; i_HPT: } goto vM4ih; J4aF2: $CQ28F['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 zraUa; vM4ih: return Response::jsonSuccessData($CQ28F); goto JVZ61; JVZ61: } }