Skip to content

Commit

Permalink
🦄 fix otale#162
Browse files Browse the repository at this point in the history
  • Loading branch information
hellokaton committed Mar 20, 2017
1 parent a14235f commit 462dbaa
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.12](https://img.shields.io/badge/version-1.2.11-yellow.svg?style=flat-square)
![Version 1.2.13](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.12](https://img.shields.io/badge/version-1.2.11-yellow.svg?style=flat-square)
![Version 1.2.13](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.12</version>
<version>1.2.13</version>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/tale/controller/IndexController.java
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public String page(@PathParam String pagename, Request request) {
* @param limit
* @return
*/
@Route(values = {"page/:p", "page/:pageIndex.html"}, method = HttpMethod.GET)
@Route(values = {"page/:pageIndex", "page/:pageIndex.html"}, method = HttpMethod.GET)
public String index(Request request, @PathParam int pageIndex, @QueryParam(value = "limit", defaultValue = "12") int limit) {
pageIndex = pageIndex < 0 || pageIndex > TaleConst.MAX_PAGE ? 1 : pageIndex;
Take take = new Take(Contents.class).eq("type", Types.ARTICLE).eq("status", Types.PUBLISH).page(pageIndex, limit, "created desc");
Expand Down

0 comments on commit 462dbaa

Please sign in to comment.