<?php
/**
 * ------------------------ 
 *  版权所有  www.tecmz.com
 *  商业版本请购买正版授权使用
 * ------------------------
*/ namespace Module\Article\Api\Controller; use ModStart\Core\Input\InputPackage; use ModStart\Core\Input\Response; use ModStart\Module\ModuleBaseController; use Module\Article\Util\ArticleUtil; class ArticleController extends ModuleBaseController { public function get() { goto pK4y4; TwRCp: return Response::generateSuccessData(array('article' => $QpIae)); goto EyuVf; pLq0g: if (is_numeric($pNLgg)) { $QpIae = ArticleUtil::get($pNLgg); } else { $QpIae = ArticleUtil::getByAlias($pNLgg); } goto TwRCp; pK4y4: $Ylazq = InputPackage::buildFromInput(); goto qcBSD; qcBSD: $pNLgg = $Ylazq->getTrimString('id'); goto pLq0g; EyuVf: } }