<?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 B3XZy; B3XZy: $tBuXm = InputPackage::buildFromInput(); goto twgQa; twgQa: $StE5h = $tBuXm->getTrimString('id'); goto hzDGE; hzDGE: if (is_numeric($StE5h)) { $glXLo = ArticleUtil::get($StE5h); } else { $glXLo = ArticleUtil::getByAlias($StE5h); } goto u1M70; u1M70: return Response::generateSuccessData(array('article' => $glXLo)); goto v8Joo; v8Joo: } }