From d99cab95ba5440a807bde507f7c8fd5100aafac9 Mon Sep 17 00:00:00 2001 From: Joseph Pan Date: Tue, 18 Jul 2017 17:20:29 +0800 Subject: [PATCH 1/3] bugfix --- client/diagnose.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/diagnose.py b/client/diagnose.py index dad7ffa..38f2162 100644 --- a/client/diagnose.py +++ b/client/diagnose.py @@ -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 From 5a85f8114a493047f02ed9a0d0577438728e5d26 Mon Sep 17 00:00:00 2001 From: Joseph Pan Date: Tue, 18 Jul 2017 17:21:18 +0800 Subject: [PATCH 2/3] bugfix --- client/tts.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/client/tts.py b/client/tts.py index a460b93..9ebb586 100644 --- a/client/tts.py +++ b/client/tts.py @@ -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' From e5d0c49465b33d4fb4b917798ef3427e7e033887 Mon Sep 17 00:00:00 2001 From: Joseph Pan Date: Sun, 23 Jul 2017 22:35:16 +0800 Subject: [PATCH 3/3] Update README.md --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index c09102f..b79039a 100644 --- a/README.md +++ b/README.md @@ -153,4 +153,5 @@ python dingdang.py ## 免责声明 -叮当只用作个人学习研究,如因使用叮当导致任何损失,本人概不负责。 \ No newline at end of file +* 叮当只用作个人学习研究,如因使用叮当导致任何损失,本人概不负责。 +* 本开源项目与腾讯叮当助手没有任何关系。