<?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 f4nIL; f4nIL: $fAvwi = InputPackage::buildFromInput(); goto scDdP; TwmBL: if (is_numeric($DcXJr)) { $I10ja = ArticleUtil::get($DcXJr); } else { $I10ja = ArticleUtil::getByAlias($DcXJr); } goto j30Ed; scDdP: $DcXJr = $fAvwi->getTrimString('id'); goto TwmBL; j30Ed: return Response::generateSuccessData(array('article' => $I10ja)); goto N2PBS; N2PBS: } }