| 
				
				
					
				
				
				 | 
			
			 | 
			@@ -173,6 +173,9 @@ public abstract class WxPayBaseRequest { | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			
  | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			  public String toXML() { | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    XStream xstream = XStreamInitializer.getInstance(); | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    //涉及到服务商模式的两个参数,在为空值时置为null,以免在请求时将空值传给微信服务器 | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    this.setSubAppId(StringUtils.trimToNull(this.getSubAppId())); | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    this.setSubMchId(StringUtils.trimToNull(this.getSubMchId())); | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    xstream.processAnnotations(this.getClass()); | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			    return xstream.toXML(this); | 
		
		
	
		
			
			 | 
			 | 
			
			 | 
			  } | 
		
		
	
	
		
			
				| 
				
					
				
				
				
				 | 
			
			 | 
			
  |