|  |  | @ -1,18 +1,42 @@ | 
			
		
	
		
		
			
				
					
					|  |  |  | <?php |  |  |  | <?php | 
			
		
	
		
		
			
				
					
					|  |  |  | namespace LaneWeChat\Core\Aes; |  |  |  | namespace LaneWeChat\Core\Aes; // 定义命名空间,用于组织代码 | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | 
 |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  | class ErrorCode |  |  |  | class ErrorCode // 定义ErrorCode类 | 
			
				
				
			
		
	
		
		
	
		
		
			
				
					
					|  |  |  | { |  |  |  | { | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     // 成员变量,表示操作成功 | 
			
		
	
		
		
			
				
					
					|  |  |  |     public static $OK = 0; |  |  |  |     public static $OK = 0; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     // 成员变量,表示验证签名错误 | 
			
		
	
		
		
			
				
					
					|  |  |  |     public static $ValidateSignatureError = -40001; |  |  |  |     public static $ValidateSignatureError = -40001; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     // 成员变量,表示解析XML错误 | 
			
		
	
		
		
			
				
					
					|  |  |  |     public static $ParseXmlError = -40002; |  |  |  |     public static $ParseXmlError = -40002; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     // 成员变量,表示计算签名错误 | 
			
		
	
		
		
			
				
					
					|  |  |  |     public static $ComputeSignatureError = -40003; |  |  |  |     public static $ComputeSignatureError = -40003; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     // 成员变量,表示AES密钥不合法 | 
			
		
	
		
		
			
				
					
					|  |  |  |     public static $IllegalAesKey = -40004; |  |  |  |     public static $IllegalAesKey = -40004; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     // 成员变量,表示验证AppID错误 | 
			
		
	
		
		
			
				
					
					|  |  |  |     public static $ValidateAppidError = -40005; |  |  |  |     public static $ValidateAppidError = -40005; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     // 成员变量,表示AES加密错误 | 
			
		
	
		
		
			
				
					
					|  |  |  |     public static $EncryptAESError = -40006; |  |  |  |     public static $EncryptAESError = -40006; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     // 成员变量,表示AES解密错误 | 
			
		
	
		
		
			
				
					
					|  |  |  |     public static $DecryptAESError = -40007; |  |  |  |     public static $DecryptAESError = -40007; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     // 成员变量,表示缓冲区不合法 | 
			
		
	
		
		
			
				
					
					|  |  |  |     public static $IllegalBuffer = -40008; |  |  |  |     public static $IllegalBuffer = -40008; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     // 成员变量,表示Base64编码错误 | 
			
		
	
		
		
			
				
					
					|  |  |  |     public static $EncodeBase64Error = -40009; |  |  |  |     public static $EncodeBase64Error = -40009; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     // 成员变量,表示Base64解码错误 | 
			
		
	
		
		
			
				
					
					|  |  |  |     public static $DecodeBase64Error = -40010; |  |  |  |     public static $DecodeBase64Error = -40010; | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | 
 | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  |     // 成员变量,表示生成返回XML错误 | 
			
		
	
		
		
			
				
					
					|  |  |  |     public static $GenReturnXmlError = -40011; |  |  |  |     public static $GenReturnXmlError = -40011; | 
			
		
	
		
		
			
				
					
					|  |  |  | } |  |  |  | } | 
			
		
	
		
		
			
				
					
					|  |  |  |  |  |  |  | ?> |