<?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 xrRvb; pLEBP: return Response::raw(join('
', $lN4O1), array('Content-Type' => 'text/plain')); goto rhOod; yauIK: $pNz4E['GoodsSaleStatus'] = TypeUtil::dump(GoodsSaleStatus::class); goto xA6cT; wRcf1: $lN4O1[] = '// This file is created by ' . action('\\' . __CLASS__ . '@constant') . '
'; goto Xp4oF; Xp4oF: foreach ($pNz4E as $sknax => $MJMVZ) { $lN4O1[] = "export const {$sknax} = " . json_encode($MJMVZ, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT) . ';'; } goto pLEBP; xrRvb: $pNz4E = array(); goto yauIK; xA6cT: $lN4O1 = array(); goto wRcf1; rhOod: } public function app() { goto Bh5gT; LgF1V: $KDQ92['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 TzC8D; PToQg: $KDQ92['hashLazyValue'] = array(); goto LgF1V; a2uVk: return Response::jsonSuccessData($KDQ92); goto av2SK; TzC8D: if (MemberUser::id()) { goto HmPHK; LSZVp: $KDQ92['user']['username'] = $EiIVK['username']; goto GY2WL; zNapS: $KDQ92['user']['vip'] = MemberVip::get(); goto DibHW; ijBtm: $KDQ92['user']['phoneVerified'] = !!$EiIVK['phoneVerified']; goto CO2rS; gNTRz: if (empty($KDQ92['user']['nickname'])) { $KDQ92['user']['nickname'] = $KDQ92['user']['username']; } goto ZAQgB; GY2WL: $KDQ92['user']['nickname'] = empty($EiIVK['nickname']) ? null : $EiIVK['nickname']; goto gNTRz; eg_6m: $KDQ92['user']['avatar'] = AssetsUtil::fixFull($EiIVK['avatar'] ? $EiIVK['avatar'] : $KDQ92['user']['avatar']); goto rH0WV; IUPpJ: $KDQ92['user']['id'] = $EiIVK['id']; goto eg_6m; DibHW: $KDQ92['user']['vipExpire'] = $EiIVK['vipExpire']; goto yWsag; LpHyQ: $KDQ92['user']['avatarBig'] = AssetsUtil::fixFull($EiIVK['avatarBig'] ? $EiIVK['avatarBig'] : $KDQ92['user']['avatar']); goto LSZVp; ZAQgB: $KDQ92['user']['phone'] = $EiIVK['phone']; goto ijBtm; rH0WV: $KDQ92['user']['avatarMedium'] = AssetsUtil::fixFull($EiIVK['avatarMedium'] ? $EiIVK['avatarMedium'] : $KDQ92['user']['avatar']); goto LpHyQ; HmPHK: $EiIVK = MemberUser::user(); goto IUPpJ; CO2rS: $KDQ92['user']['email'] = $EiIVK['email']; goto Rfvo1; Rfvo1: $KDQ92['user']['emailVerified'] = !!$EiIVK['emailVerified']; goto zNapS; yWsag: } goto a2uVk; h1Ez0: list($iQwVD, $eBJV4) = $this->viewPaths('index'); goto pAGJO; Bh5gT: $KDQ92 = array(); goto h1Ez0; pAGJO: $KbjJ3 = date('Ymd_His', filemtime($this->viewRealpath($iQwVD))); goto O4_Wp; O4_Wp: $KDQ92['hashPC'] = 'v' . $KbjJ3; goto PToQg; av2SK: } }