Skip to content

Commit

Permalink
删除错误的 java 注释信息
Browse files Browse the repository at this point in the history
  • Loading branch information
JPressProjects committed Sep 15, 2016
1 parent 36f47ee commit 99197c1
Showing 1 changed file with 8 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,25 +27,6 @@
import io.jpress.model.query.TaxonomyQuery;
import io.jpress.utils.StringUtils;

/**
* @title Contents 标签
*
* 使用方法:<br />
* <@contents orderBy="" keyword="Jpress" page="" tag="tag1,xxx" pagesize
* ="" typeid="1,2" module="article,bbs" style= "article,video,audio"
* userid="123" parentid="1" userid="" ><br>
* <br>
* <#list contents as content><br>
* ${content.id} : ${content.title!} <br>
* <//#list><br>
* <br>
* </@contents>
*
*
* orderBy 的值有:views,lastpost,created,vote_up,vote_down
*
*
*/
public class ContentsTag extends JTag {

public static final String TAG_NAME = "jp.contents";
Expand Down Expand Up @@ -77,14 +58,18 @@ public void onRender() {

Taxonomy upperTaxonomy = null;
if (modules != null && modules.length == 1) {

BigInteger upperId = getParamToBigInteger("upperId");

if (upperId != null) {
upperTaxonomy = TaxonomyQuery.me().findById(upperId);
return;
}
String upperSlug = getParam("upperSlug");
if (StringUtils.isNotBlank(upperSlug)) {
upperTaxonomy = TaxonomyQuery.me().findBySlugAndModule(upperSlug, modules[0]);

if (upperTaxonomy == null) {
String upperSlug = getParam("upperSlug");
if (StringUtils.isNotBlank(upperSlug)) {
upperTaxonomy = TaxonomyQuery.me().findBySlugAndModule(upperSlug, modules[0]);
}
}
}

Expand Down

0 comments on commit 99197c1

Please sign in to comment.