Browse Source
			
			
			Update server/notification-providers/dingding.js
			
				Co-authored-by: Adam Stachowicz <saibamenppl@gmail.com>
			
			
				pull/687/head
			
			
		 
		
			
				
					
						 xJoker
					
					4 years ago
						xJoker
					
					4 years ago
					
						
							committed by
							
								 GitHub
								GitHub
							
						 
					
				 
				
			 
		 
		
			
				
					
					No known key found for this signature in database
					
						
							GPG Key ID: 4AEE18F83AFDEB23
						
					
				
			
		
		
		
	
		
			
				 1 changed files with 
1 additions and 
1 deletions
			 
			
		 
		
			
				- 
					
					
					 
					server/notification-providers/dingding.js
				
				
				
					
						
							
								
									
	
		
			
				
					|  |  | @ -59,7 +59,7 @@ class DingDing extends NotificationProvider { | 
			
		
	
		
			
				
					|  |  |  |     /** DingDing sign */ | 
			
		
	
		
			
				
					|  |  |  |     sign(timestamp,secretKey) { | 
			
		
	
		
			
				
					|  |  |  |         return Crypto | 
			
		
	
		
			
				
					|  |  |  |             .createHmac("sha256",Buffer.from(secretKey, 'utf8')) | 
			
		
	
		
			
				
					|  |  |  |             .createHmac("sha256", Buffer.from(secretKey, 'utf8')) | 
			
		
	
		
			
				
					|  |  |  |             .update(Buffer.from(`${timestamp}\n${secretKey}`, 'utf8')) | 
			
		
	
		
			
				
					|  |  |  |             .digest("base64"); | 
			
		
	
		
			
				
					|  |  |  |     } | 
			
		
	
	
		
			
				
					|  |  | 
 |