| 
					
				 | 
			
			
				@@ -133,14 +133,14 @@ public class SaoBeiPayController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         //创建client 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        SaobeiApiClient<SaobeiPreAuthMiniPayRequest, SaobeiPreAuthMiniPayResponse> client = new DefaultSaobeiApiClient<>(ACCESS_TOKEN); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        SaobeiApiClient<SaobeiPreAuthMiniPayRequest, SaobeiPreAuthMiniPayResponse> client = new DefaultSaobeiApiClient<>("23570b46a955484d92038f6a18d2b9d6"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         //创建requst 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         SaobeiPreAuthMiniPayRequest requst = new SaobeiPreAuthMiniPayRequest(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        requst.setPay_ver(PAY_VER); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        requst.setPay_ver("110"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         requst.setPay_type("010"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         requst.setService_id("015"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        requst.setMerchant_no(MERCHANT_NO); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        requst.setTerminal_id(TERMINAL_ID); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        requst.setMerchant_no("845104816000034"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        requst.setTerminal_id("18241101"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         Random random = new Random(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         String result = ""; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         for (int i = 0; i < 6; i++) { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -149,15 +149,15 @@ public class SaoBeiPayController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         String ordNo_1 = System.nanoTime() + result; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         //202003252204310000 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        requst.setTerminal_trace("202003252204310000");         //终端流水号,填写商户系统的订单号 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        requst.setTerminal_trace(ordNo_1);         //终端流水号,填写商户系统的订单号 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         // new SimpleDateFormat("yyyyMMddhhmmss").format(new Date()) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        requst.setTerminal_time("20200325220431");      //交易时间 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        requst.setTerminal_time(new SimpleDateFormat("yyyyMMddhhmmss").format(new Date()));      //交易时间 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         String amt = payInfoRequest.getAmt(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         requst.setTotal_fee("0.01");                                                                    //订单金额 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         String openId = payInfoRequest.getOpenId(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         //oRwjv4iHjSUgxNxOJOQ_60Ln7cno  obnG9jhDLvom5fGwuhYysmQTW4qQ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        requst.setOpen_id("obnG9jhDLvom5fGwuhYysmQTW4qQ");                                              //微信用户openId 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        requst.setOpen_id("oRwjv4iHjSUgxNxOJOQ_60Ln7cno");                                              //微信用户openId 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         requst.setOrder_body("sdk测试"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         String notifyUrl = "https://"+domainName+"/"+globalPrefix+"/getSaobeiCallback"; 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -166,7 +166,7 @@ public class SaoBeiPayController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         //wxe568c727d466aef9 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         //wxe1135cd390b38a54 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        requst.setSub_appid("wxe568c727d466aef9"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        requst.setSub_appid("wxe1135cd390b38a54"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         //发送请求 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         System.out.println("小程序预支付请求报文:"+JSON.toJSONString(requst)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         SaobeiPreAuthMiniPayResponse response = client.execute(requst); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -197,7 +197,7 @@ public class SaoBeiPayController { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         SaobeiMiniPayResponse responseMiniPay = clientMiniPay.execute(requstMiniPay); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         System.out.println("返回报文:"+JSON.toJSONString(responseMiniPay)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         resultData = ResultData.success(responseMiniPay); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        return gson.toJson(responseMiniPay); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        return gson.toJson(resultData); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     /*** 
			 |