Skip to content

Commit

Permalink
添加一条doc引用
Browse files Browse the repository at this point in the history
  • Loading branch information
bingsanyu committed Sep 5, 2023
1 parent 035bc41 commit 3f3f166
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import json
import json, threading
from http.server import BaseHTTPRequestHandler, HTTPServer
import threading
from share_minutes import ShareMinutes

# 企业自建应用
Expand All @@ -24,7 +23,9 @@ def do_POST(self):
content_length = int(self.headers['Content-Length'])
post_data = self.rfile.read(content_length)
post_data = json.loads(post_data.decode('utf-8'))
# 事件订阅的请求地址配置验证

# 配置请求地址
# doc: https://open.feishu.cn/document/server-docs/event-subscription-guide/event-subscription-configure-/request-url-configuration-case
if 'challenge' in post_data and post_data['type'] == 'url_verification':
response = {'challenge': post_data['challenge']}
self.send_response(200)
Expand All @@ -44,6 +45,7 @@ def do_POST(self):
# 开启线程
t = threading.Thread(target=share_minutes.run, args=(meeting_id,))
t.start()

else:
pass

Expand Down

0 comments on commit 3f3f166

Please sign in to comment.