|  | @@ -1,10 +1,13 @@
 | 
	
		
			
				|  |  |  package cn.newfeifan.mall.module.pay.fuiou.client;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +import cn.newfeifan.mall.module.pay.fuiou.util.DateUtils;
 | 
	
		
			
				|  |  |  import cn.newfeifan.mall.module.pay.fuiou.util.FuiouHttpPoster;
 | 
	
		
			
				|  |  |  import cn.newfeifan.mall.module.pay.fuiou.util.MD5;
 | 
	
		
			
				|  |  |  import com.alibaba.fastjson.JSON;
 | 
	
		
			
				|  |  |  import cn.newfeifan.mall.module.pay.fuiou.reqdata.QueryWithdrawAmtDataReq;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +import static cn.newfeifan.mall.module.pay.enums.DictTypeConstants.*;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  /**
 | 
	
		
			
				|  |  |   * 类功能描述
 | 
	
		
			
				|  |  |   * QueryWithdrawAmtClient.java
 | 
	
	
		
			
				|  | @@ -15,15 +18,14 @@ import cn.newfeifan.mall.module.pay.fuiou.reqdata.QueryWithdrawAmtDataReq;
 | 
	
		
			
				|  |  |   */
 | 
	
		
			
				|  |  |  public class QueryWithdrawAmtClient {
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -	public static String privateKey = "4e092f20607e11e71d2214ad47a356fa";
 | 
	
		
			
				|  |  | -	
 | 
	
		
			
				|  |  |  	public static void main(String[] args) throws Exception {
 | 
	
		
			
				|  |  |  		FuiouHttpPoster http = new FuiouHttpPoster();
 | 
	
		
			
				|  |  | -		http.setCharset("utf-8");
 | 
	
		
			
				|  |  | -		http.setUrl("http://192.168.8.45:45002/aggregatePay/queryWithdrawAmt");
 | 
	
		
			
				|  |  | +		http.setCharset(charset);
 | 
	
		
			
				|  |  | +		http.setUrl("https://aipay.fuioupay.com/aggregatePay/queryWithdrawAmt");
 | 
	
		
			
				|  |  |  		QueryWithdrawAmtDataReq req = new QueryWithdrawAmtDataReq();
 | 
	
		
			
				|  |  | -		req.setMchnt_cd("0002900F0370586");
 | 
	
		
			
				|  |  | -		req.setRandom_str("123456");
 | 
	
		
			
				|  |  | +		req.setMchnt_cd(mchnt_cd);
 | 
	
		
			
				|  |  | +		req.setRandom_str(DateUtils.getCurrentDate("yyyyMMddHHmmss")
 | 
	
		
			
				|  |  | +				+ "568974");
 | 
	
		
			
				|  |  |  		req.setSign(MD5.MD5Encode(req.getMchnt_cd() + "|" + req.getRandom_str() + "|" + privateKey, "UTF-8"));
 | 
	
		
			
				|  |  |  		String res = http.newPost(JSON.toJSONString(req));
 | 
	
		
			
				|  |  |  		System.out.println(res);
 |