修改群消息机器人地址
							parent
							
								
									7b696ec4a8
								
							
						
					
					
						commit
						03e2e6667f
					
				| 
						 | 
					@ -6,7 +6,7 @@ import requests
 | 
				
			||||||
class wechat_alert:
 | 
					class wechat_alert:
 | 
				
			||||||
    def alert(self, message, at_people_list=[], hook_url=None):
 | 
					    def alert(self, message, at_people_list=[], hook_url=None):
 | 
				
			||||||
        try:
 | 
					        try:
 | 
				
			||||||
            webhook = "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=25b70526-e844-46a2-a8e6-3ce69827ba9b" if hook_url == None else hook_url
 | 
					            webhook = "https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=08e26ad6-9b88-41ee-8864-bb84150c70d6" if hook_url == None else hook_url
 | 
				
			||||||
            header = {
 | 
					            header = {
 | 
				
			||||||
                "Content-Type": "application/json",
 | 
					                "Content-Type": "application/json",
 | 
				
			||||||
                "Charset": "UTF-8"
 | 
					                "Charset": "UTF-8"
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue