Skip to content
This repository has been archived by the owner on Apr 13, 2018. It is now read-only.

Commit

Permalink
Merge branch 'master' of https://github.com/wzpan/dingdang-robot
Browse files Browse the repository at this point in the history
  • Loading branch information
wzpan committed Jul 29, 2017
2 parents fa872d2 + e5d0c49 commit 9fe1be9
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,4 +153,5 @@ python dingdang.py

## 免责声明

叮当只用作个人学习研究,如因使用叮当导致任何损失,本人概不负责。
* 叮当只用作个人学习研究,如因使用叮当导致任何损失,本人概不负责。
* 本开源项目与腾讯叮当助手没有任何关系。
2 changes: 1 addition & 1 deletion client/diagnose.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def check_network_connection(server="www.baidu.com"):
Arguments:
server -- (optional) the server to connect with (Default:
"www.dingdangdu.com")
"www.baidu.com")
Returns:
True or False
Expand Down
3 changes: 1 addition & 2 deletions client/tts.py
Original file line number Diff line number Diff line change
Expand Up @@ -460,8 +460,7 @@ def get_config(cls):

@classmethod
def is_available(cls):
return (super(cls, cls).is_available() and
diagnose.check_network_connection())
return diagnose.check_network_connection()

def get_token(self):
URL = 'http://openapi.baidu.com/oauth/2.0/token'
Expand Down

0 comments on commit 9fe1be9

Please sign in to comment.