File was renamed from kidgrow-business/kidgrow-opration-center/kidgrow-opration-center-server/src/main/java/com/kidgrow/oprationcenter/config/weixin/MyConfig.java |
| | |
| | | package com.kidgrow.oprationcenter.config.weixin; |
| | | package com.kidgrow.oprationcenter.weixin; |
| | | |
| | | import java.io.ByteArrayInputStream; |
| | | import java.io.File; |
| | | import java.io.FileInputStream; |
| | | import java.io.InputStream; |
| | | |
| | | public class MyConfig extends WXPayConfig{ |
| | |
| | | |
| | | private byte[] certData; |
| | | |
| | | public MyConfig() throws Exception { |
| | | String certPath = "D:\\develop\\chengxu\\houtai\\3cc.txt"; |
| | | File file = new File(certPath); |
| | | InputStream certStream = new FileInputStream(file); |
| | | this.certData = new byte[(int) file.length()]; |
| | | certStream.read(this.certData); |
| | | certStream.close(); |
| | | public MyConfig() { |
| | | |
| | | } |
| | | // public MyConfig() throws Exception { |
| | | // String certPath = "D:\\develop\\chengxu\\houtai\\3cc.txt"; |
| | | // File file = new File(certPath); |
| | | // InputStream certStream = new FileInputStream(file); |
| | | // this.certData = new byte[(int) file.length()]; |
| | | // certStream.read(this.certData); |
| | | // certStream.close(); |
| | | // } |
| | | //wx84c77dcda51c612c |
| | | @Override |
| | | public String getAppID() { |