| 
					
				 | 
			
			
				@@ -1,58 +0,0 @@ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-package cn.newfeifan.mall.module.pay.controller.app.fuyouorder.vo; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-import cn.newfeifan.mall.module.pay.fuiou.reqdata.WxPreCreateDataReq; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-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 static cn.newfeifan.mall.module.pay.fuiou.client.WxPreCreateClient.privateKey; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-public class Test { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    public static void main(String[] args) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        WxPreCreateDataReq req = new WxPreCreateDataReq(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        FuiouHttpPoster http = new FuiouHttpPoster(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        http.setCharset("utf-8"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        http.setUrl("https://aipaytest.fuioupay.com/aggregatePay/wxPreCreate"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        req.setTerm_id("88888888"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        req.setTerm_ip("192.168.8.8"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        req.setRandom_str(DateUtils.getCurrentDate("yyyyMMddHHmmss") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                + "568974"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        req.setMchnt_cd("0002900F1503036"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        req.setTrade_type("JSAPI"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//        req.setOpenid("oDax96l0bZdXqRQ2uVfn_2LV-DxM");//微信支付此字段必填 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//		req.setSub_openid("221122121");//支付宝支付此字段必填 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        req.setOrder_amt("1"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        req.setGoods_des("测试订单"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        req.setOpenid("oDax96l0bZdXqRQ2uVfn_2LV-DxM"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        req.setSub_openid("oDax96l0bZdXqRQ2uVfn_2LV-DxM"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        req.setSub_appid("wxe133514440a8829d"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        req.setMchnt_order_no("1066" + "o202406121152101");//不能重复 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        req.setTxn_begin_ts(DateUtils.getCurrentDate("yyyyMMddHHmmss")); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        req.setNotify_url("wwww.baidu.com"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        req.setVersion("1.0"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        StringBuilder sb = new StringBuilder(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        sb.append(req.getMchnt_cd().trim()).append("|") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                .append(req.getTrade_type().trim()).append("|") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                .append(req.getOrder_amt().trim()).append("|") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                .append(req.getMchnt_order_no().trim()).append("|") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                .append(req.getTxn_begin_ts()).append("|") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                .append(req.getGoods_des()).append("|") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                .append(req.getTerm_id()).append("|") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                .append(req.getTerm_ip()).append("|") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                .append(req.getNotify_url()).append("|") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                .append(req.getRandom_str()).append("|") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                .append(req.getVersion()).append("|") 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                .append(privateKey); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        req.setSign(MD5.MD5Encode(sb.toString())); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        String res = null; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        try { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            res = http.newPost(JSON.toJSONString(req)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        } catch (Exception e) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            throw new RuntimeException(e); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        System.out.println("=====resp====="); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        System.out.println(res); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				- 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-} 
			 |