| | |
| | | private CommunityService communityService; |
| | | @Resource |
| | | private MinioUtil minioUtil; |
| | | @Resource |
| | | private UmfPayUtil umfPayUtil; |
| | | |
| | | public static void main(String[] args) { |
| | | // int nextInt = RandomUtils.nextInt(99999, 1000000); |
| | |
| | | @ApiOperation("uu洗车下单接口") |
| | | @GetMapping("/uuPay") |
| | | public R uuPay(@RequestParam("orderid") String orderid,@RequestParam("openid")String openid,@RequestParam("amount")String amount){ |
| | | SFTPUtil sftp = new SFTPUtil(userName, password, host, port); |
| | | sftp.login(); |
| | | try { |
| | | sftp.download("/mnt/data/web/excel/", "53461_.key.p8", "D:/mnt/data/web/file/53461_.key.p8"); |
| | | } catch (SftpException e) { |
| | | e.printStackTrace(); |
| | | } catch (FileNotFoundException e) { |
| | | e.printStackTrace(); |
| | | } |
| | | sftp.logout(); |
| | | UmfPayUtil umfPayUtil=new UmfPayUtil(); |
| | | Map map=umfPayUtil.pay(openid, DateUtils.getCurrentDateString(),openid,amount); |
| | | return R.ok(map); |
| | | } |