diff --git a/main.py b/main.py index d12757d..b210d43 100644 --- a/main.py +++ b/main.py @@ -334,17 +334,17 @@ def kp(event_data): # new_wxid='wxid_4413224132412') # 发送小程序 - # utils.sendminiProgram(data, account_wxid, wxid, planetXml) + utils.sendminiProgram(data, account_wxid, wxid, planetXml) # H5链接 - WXBotService.send_link_message( - account_wxid, - wxid, - title="欢迎加入微信群", - desc="请查看规则", - url=f'https://link.hackrobot.cn?wxid={wxid}', - pic= - "https://www.hackrobot.cn/wp-content/uploads/2023/05/cropped-cropped-Screenshot-2023-05-22-at-17.26.38.png" - ) + # WXBotService.send_link_message( + # account_wxid, + # wxid, + # title="欢迎加入微信群", + # desc="请查看规则", + # url=f'https://link.hackrobot.cn?wxid={wxid}', + # pic= + # "https://www.hackrobot.cn/wp-content/uploads/2023/05/cropped-cropped-Screenshot-2023-05-22-at-17.26.38.png" + # ) # if msg in ['腾讯云']: # # 发送小程序 diff --git a/utils.py b/utils.py index 129431d..5bd0906 100644 --- a/utils.py +++ b/utils.py @@ -38,6 +38,7 @@ def saveWxidInfo(account_wxid, wxid,openId=None,h5openid=None): db_user = crud.get_user_by_wxid(db=SessionLocal(), wxid=wxid) if db_user: print("wxid already registered") + # 更新数据 # return db_user else: new_user=crud.create_user(db=SessionLocal(), user=friendItemObj)