22 |

23 |
恭喜您,支付成功!
24 |
但由于您支付过少或仅为测试数据等原因,无法将您的数据加入至捐赠表,抱歉!
25 |
26 |
27 |
28 |
--------------------------------------------------------------------------------
/src/main/resources/templates/pay-success.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
22 |

23 |
恭喜您,支付成功!
24 |
十分感谢您的捐赠,您可以到这里查看到您的捐赠数据:
25 |
http://xpay.exrick.cn/thanks
26 |
27 |
28 |
29 |
--------------------------------------------------------------------------------
/src/main/java/cn/exrick/controller/PageController.java:
--------------------------------------------------------------------------------
1 | package cn.exrick.controller;
2 |
3 | import io.swagger.annotations.Api;
4 | import io.swagger.annotations.ApiOperation;
5 | import org.slf4j.Logger;
6 | import org.slf4j.LoggerFactory;
7 | import org.springframework.stereotype.Controller;
8 | import org.springframework.web.bind.annotation.PathVariable;
9 | import org.springframework.web.bind.annotation.RequestMapping;
10 | import org.springframework.web.bind.annotation.RequestMethod;
11 |
12 | import java.util.Date;
13 | import java.util.concurrent.TimeUnit;
14 |
15 |
16 | /**
17 | * @author Exrickx
18 | */
19 | @Controller
20 | public class PageController {
21 |
22 | private static final Logger log= LoggerFactory.getLogger(PageController.class);
23 |
24 | @RequestMapping("/")
25 | public String index(){
26 |
27 | return "index";
28 | }
29 |
30 | @RequestMapping("/{page}")
31 | public String showPage(@PathVariable String page){
32 |
33 | return page;
34 | }
35 | }
36 |
--------------------------------------------------------------------------------
/src/main/java/cn/exrick/service/PayService.java:
--------------------------------------------------------------------------------
1 | package cn.exrick.service;
2 |
3 | import cn.exrick.bean.Pay;
4 |
5 | import java.util.List;
6 |
7 | /**
8 | * @author Exrickx
9 | */
10 | public interface PayService {
11 |
12 | /**
13 | * 获得支付表
14 | * @param state
15 | * @return
16 | */
17 | List