Skip to content

Commit

Permalink
'调整AppKey'
Browse files Browse the repository at this point in the history
  • Loading branch information
cuizhongyi committed Sep 19, 2018
1 parent 318fd90 commit 8e88fd6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion 图灵机器人聊天/tuling.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ class TuringChatMode(object):
def __init__(self):
# API接口地址
self.turing_url = 'http://www.tuling123.com/openapi/api?'
# AppKey密钥
self.app_key = '82622364a28142878dd8ad634eec401c'

def getTuringText(self, text):
"""获取聊天返回内容"""
Expand All @@ -28,7 +30,7 @@ def getTuringText(self, text):
# 请求参数
turing_url_data = dict(
# AppKey密钥
key='82622364a28142878dd8ad634eec401c',
key=self.app_key,
# 聊天请求内容
info=text,
# 用户唯一标志(可以传IP地址或者MAC地址,或者其他的唯一标识)
Expand Down

0 comments on commit 8e88fd6

Please sign in to comment.