if (isset ( $this->allCategorys [$catid] )) { $model = $this->allCategorys [$catid]; } if ($catid === null || $model == null) { throw new Exception ( '栏目不存在' ); } return $model; } catch ( Exception $e ) { throw $e;
if (isset ( $this->allCategorys [$catid] )) {
$model = $this->allCategorys [$catid];
}
if ($catid === null || $model == null) {
throw new Exception ( '栏目不存在' );
return $model;
} catch ( Exception $e ) {
throw $e;