Skip to content

Commit

Permalink
🦄 fix otale#161
Browse files Browse the repository at this point in the history
  • Loading branch information
hellokaton committed Mar 18, 2017
1 parent f756ee7 commit a14235f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
demo website:https://tale.biezhi.me

[![Build Status](https://img.shields.io/travis/otale/tale.svg?style=flat-square)](https://travis-ci.org/otale/tale)
![Version 1.2.11](https://img.shields.io/badge/version-1.2.11-yellow.svg?style=flat-square)
![Version 1.2.12](https://img.shields.io/badge/version-1.2.11-yellow.svg?style=flat-square)
[![License](https://img.shields.io/badge/license-MIT-4EB1BA.svg?style=flat-square)](https://github.com/otale/tale/blob/master/LICENSE)
[![@biezhi on weibo](https://img.shields.io/badge/weibo-%40biezhi-red.svg?style=flat-square)](http://weibo.com/u/5238733773)
[![Gitter](https://badges.gitter.im/biezhi/tale-group.svg)](https://gitter.im/tale-group)
Expand Down
2 changes: 1 addition & 1 deletion README_ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
演示站点:https://tale.biezhi.me

[![Build Status](https://img.shields.io/travis/otale/tale.svg?style=flat-square)](https://travis-ci.org/otale/tale)
![Version 1.2.11](https://img.shields.io/badge/version-1.2.11-yellow.svg?style=flat-square)
![Version 1.2.12](https://img.shields.io/badge/version-1.2.11-yellow.svg?style=flat-square)
[![License](https://img.shields.io/badge/license-MIT-4EB1BA.svg?style=flat-square)](https://github.com/otale/tale/blob/master/LICENSE)
[![@biezhi on weibo](https://img.shields.io/badge/weibo-%40biezhi-red.svg?style=flat-square)](http://weibo.com/u/5238733773)
[![Gitter](https://badges.gitter.im/biezhi/tale-group.svg)](https://gitter.im/tale-group)
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>org.junicorn</groupId>
<artifactId>tale</artifactId>
<version>1.2.11</version>
<version>1.2.12</version>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/tale/service/impl/SiteServiceImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public List<Contents> getContens(String type, int limit) {
// 最新文章
if (Types.RECENT_ARTICLE.equals(type)) {
cp = activeRecord.page(new Take(Contents.class)
.eq("status", Types.PUBLISH).eq("type", Types.ARTICLE).page(1, limit, "created"));
.eq("status", Types.PUBLISH).eq("type", Types.ARTICLE).page(1, limit, "created desc"));
}

// 随机文章
Expand Down

0 comments on commit a14235f

Please sign in to comment.