<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Member\Api\Controller; use Illuminate\Routing\Controller; use ModStart\Core\Exception\BizException; use ModStart\Core\Input\InputPackage; use ModStart\Core\Input\Response; class MemberDocController extends Controller { public function get() { goto KD8SI; Ha01n: $g_4iP = $Nw6ws->getTrimString('type'); goto z9UUG; KD8SI: $Nw6ws = InputPackage::buildFromInput(); goto Ha01n; z9UUG: BizException::throwsIf('类型错误', !in_array($g_4iP, array('agreement', 'privacy'))); goto i9AoG; i9AoG: return Response::generateSuccessData(array('title' => modstart_config('Member_' . ucfirst($g_4iP) . 'Title'), 'content' => modstart_config('Member_' . ucfirst($g_4iP) . 'Content'))); goto HkLnX; HkLnX: } }