From 6f16d192e0384c6a55626246346c84bf3c195114 Mon Sep 17 00:00:00 2001 From: sbilly Date: Mon, 22 Feb 2016 09:13:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=8E=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=8A=A0=E8=BD=BD=E5=88=9D=E5=A7=8B=E5=8C=96=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=20Changes=20to=20be=20committed:=20=09modifi?= =?UTF-8?q?ed:=20=20=20weixin.py?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- weixin.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/weixin.py b/weixin.py index a8781c4..4910b93 100755 --- a/weixin.py +++ b/weixin.py @@ -88,6 +88,12 @@ class WebWeixin(object): opener.addheaders = [('User-agent', self.user_agent)] urllib2.install_opener(opener) + def loadConfig(self, config): + if config['DEBUG']: self.DEBUG = config['DEBUG'] + if config['autoReplyMode']: self.autoReplyMode = config['autoReplyMode'] + if config['user_agent']: self.user_agent = config['user_agent'] + if config['interactive']: self.interactive = config['interactive'] + def getUUID(self): url = 'https://login.weixin.qq.com/jslogin' params = {