<?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 CFKo4; CO7lL: $gZ39D = $Km8YS->getTrimString('id'); goto INyk6; CFKo4: $Km8YS = InputPackage::buildFromInput(); goto CO7lL; Q2HDa: return Response::generateSuccessData(array('article' => $nnVRs)); goto YtKiI; INyk6: if (is_numeric($gZ39D)) { $nnVRs = ArticleUtil::get($gZ39D); } else { $nnVRs = ArticleUtil::getByAlias($gZ39D); } goto Q2HDa; YtKiI: } }