@author Exrickx
| 32 | * @author Exrickx |
| 33 | */ |
| 34 | @Controller |
| 35 | @Api(tags = "开放接口",description = "支付捐赠管理") |
| 36 | @CacheConfig(cacheNames = "xpay") |
| 37 | public class PayController { |
| 38 | |
| 39 | private static final Logger log= LoggerFactory.getLogger(PayController.class); |
| 40 | |
| 41 | @Autowired |
| 42 | private PayService payService; |
| 43 | |
| 44 | @Autowired |
| 45 | private PayDao payDao; |
| 46 | |
| 47 | @Autowired |
| 48 | private StringRedisTemplate redisTemplate; |
| 49 | |
| 50 | @Autowired |
| 51 | private EmailUtils emailUtils; |
| 52 | |
| 53 | @Value("${ip.expire}") |
| 54 | private Long IP_EXPIRE; |
| 55 | |
| 56 | @Value("${my.token}") |
| 57 | private String MY_TOKEN; |
| 58 | |
| 59 | @Value("${email.sender}") |
| 60 | private String EMAIL_SENDER; |
| 61 | |
| 62 | @Value("${email.receiver}") |
| 63 | private String EMAIL_RECEIVER; |
| 64 | |
| 65 | @Value("${token.admin.expire}") |
| 66 | private Long ADMIN_EXPIRE; |
| 67 | |
| 68 | @Value("${token.fake.expire}") |
| 69 | private Long FAKE_EXPIRE; |
| 70 | |
| 71 | @Value("${fake.pre}") |
| 72 | private String FAKE_PRE; |
| 73 | |
| 74 | @Value("${server.url}") |
| 75 | private String SERVER_URL; |
| 76 | |
| 77 | @Value("${qrnum}") |
| 78 | private Integer QRNUM; |
| 79 | |
| 80 | private static final String CLOSE_KEY="XPAY_CLOSE_KEY"; |
| 81 | |
| 82 | @RequestMapping(value = "/thanks/list",method = RequestMethod.GET) |
| 83 | @ResponseBody |
| 84 | public DataTablesResult getThanksList(int draw, int start, int length, @RequestParam("search[value]") String search, |
| 85 | @RequestParam("order[0][column]") int orderCol, @RequestParam("order[0][dir]") String orderDir){ |
| 86 | |
| 87 | DataTablesResult result = new DataTablesResult(); |
| 88 | //获取客户端需要排序的列 |
| 89 | String[] cols = {"nickName","payType", "money", "info", "state", "createTime"}; |
| 90 | String orderColumn = cols[orderCol]; |
| 91 | if(orderColumn == null) { |
nothing calls this directly
no outgoing calls
no test coverage detected