Skip to content

Commit

Permalink
调整演示数据
Browse files Browse the repository at this point in the history
  • Loading branch information
yfdai committed May 23, 2017
1 parent 22e3f8e commit dbe2f9c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ public void weixinVerify(HttpServletRequest request, HttpServletResponse respons
@RequestMapping("/subscribers")
public CommonDto<WeixinUser> searchSubscribers(@ModelAttribute("sc") CommonSearchCriteria sc) {

if (sc == null) sc = new CommonSearchCriteria();
sc.setPageSize(2);

List<WeixinUser> users = weixinService.searchSubscribers(0, sc);

CommonDto<WeixinUser> dto = new CommonDto<>();
Expand All @@ -85,6 +88,8 @@ public CommonDto<WeixinUser> searchSubscribers(@ModelAttribute("sc") CommonSearc

@RequestMapping("/access-token")
public Token searchAccessToken() {
return weixinService.searchAccessToken(0);
Token token = weixinService.searchAccessToken(0);
token.setAccess_token("demo");
return token;
}
}
3 changes: 3 additions & 0 deletions weniu-webapp/src/main/webapp/index.jsp
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
<%@ page language="java" contentType="text/html; charset=utf-8"
pageEncoding="utf-8"%>

<!DOCTYPE html>
<html>
<head>
Expand Down

0 comments on commit dbe2f9c

Please sign in to comment.