Skip to content

Commit

Permalink
1. 修复微信消息参数传递的bug
Browse files Browse the repository at this point in the history
2. 修复微信消息,redis无法连接时导致消息无法发送的bug
  • Loading branch information
gateray committed Oct 12, 2017
1 parent 33bd0eb commit 34add95
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ def getRedisConn(self):
self.redisConn = redisConn
return self.redisConn
except:
print("can not connect to redis.")
self.redisConn = None
def getSMTPConn(self):
try:
Expand Down
1 change: 0 additions & 1 deletion models.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ def getAccessToken(self):
try:
accessToken = yield tornado.gen.Task(self.__redis.get, redisKeys["WXQY_ACCESS_TOKEN"])
except Exception as e:
print(str(e))
accessToken = ""
if not accessToken:
accessToken = yield self.refreshToken()
Expand Down

0 comments on commit 34add95

Please sign in to comment.