| 
					
				 | 
			
			
				@ -23,6 +23,8 @@ import org.springframework.stereotype.Service; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import java.io.InputStream; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import java.io.PrintWriter; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import java.io.StringWriter; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import java.net.InetAddress; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import java.net.UnknownHostException; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import java.util.HashMap; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				import java.util.Map; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -414,9 +416,15 @@ public class YlzPayService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            if(StringUtils.isNoneBlank(openId)){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                extra.put("openId",openId); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
						/*	String value = systemDictDao.findByDictNameAndCode("RETURN_URL","RETURN_URL"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
							extra.put("returnUrl",value);*/ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            extra.put("notifyUrl", notifyUrl); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            if (depositType.equalsIgnoreCase("WX_WAP")){ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                extra.put("spbill_create_ip",getServerIp()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                extra.put("returnUrl","https://www1.yanketong.com"); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            param.setExtra(extra); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            ResponseParams<RechargeResult> respnse = onepayClient.recharge(param); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				            if (respnse.getRespCode().equals("000000")){ 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@ -440,6 +448,18 @@ public class YlzPayService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        logService.saveHttpLog(isSuccess, "hop.trade.recharge", "互联网预交金充值", "POST", null,JSON.toJSONString(param), jsonObject, error,logService.shoppatType); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return jsonObject; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * 获取服务器ip地址 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @return 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * @throws UnknownHostException 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     */ 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    public String getServerIp() throws UnknownHostException { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        InetAddress address = InetAddress.getLocalHost();//获取的是本地的IP地址 //PC-20140317PXKX/192.168.0.121 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        String hostAddress = address.getHostAddress();//192.168.0.121 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				        return hostAddress; 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				    /** 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				     * 预交金退款 
			 |