1 parent
9ec12d9cfb
commit
57e98728eb
13 files changed
+259
-5
No files matched your search
+14
-1
@@ -6,7 +6,8 @@ from itertools import chain
|
||||
from celery import shared_task
|
||||
from celery import Task
|
||||
|
||||
from app.utils import *
|
||||
from app.utils.utils import *
|
||||
from app.utils.yd_utils import get_token, get_activity_info
|
||||
|
||||
|
||||
@shared_task(ignore_result=False)
|
||||
@@ -88,3 +89,15 @@ def process_message_callback(
|
||||
# 回复群组的消息
|
||||
content = f'{{"text": "反馈的问题已经记录到多维表格, 稍后有小伙伴跟进"}}'
|
||||
send_group_message(client, message_id, content)
|
||||
|
||||
|
||||
@shared_task()
|
||||
def sync_xbot_activity_info():
|
||||
xbot_username = os.environ["XBOT_USERNAME"]
|
||||
xbot_password = os.environ["XBOT_PASSWORD"]
|
||||
token = get_token(xbot_username, xbot_password)
|
||||
office_activity_uuids: list = get_activity_info(token)
|
||||
for item in office_activity_uuids:
|
||||
uuid = item.get("uuid")
|
||||
package_viewName = item.get("packageViewName")
|
||||
print(uuid, package_viewName)
|
||||
Reference in new issue
Block a user