From 633c1af8943d55ee8608060c015d71c38c5c6b41 Mon Sep 17 00:00:00 2001 From: eric Date: Tue, 31 Mar 2026 13:15:45 -0500 Subject: [PATCH] 's' --- app/routers/chatbot.py | 2 +- app/routers/nomadvip.py | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/app/routers/chatbot.py b/app/routers/chatbot.py index 0e8a57c..8d957e8 100644 --- a/app/routers/chatbot.py +++ b/app/routers/chatbot.py @@ -375,7 +375,7 @@ async def handle_business(data: dict) -> str: msg = _build_keyword_h5_obj(query, user_id) if msg: return json.dumps(msg, ensure_ascii=False) - return "1111111" + return "" async def _handle_wechat_request(request: Request, app_id: Optional[str], background_tasks: BackgroundTasks) -> str: diff --git a/app/routers/nomadvip.py b/app/routers/nomadvip.py index 7c48235..ec8e10b 100644 --- a/app/routers/nomadvip.py +++ b/app/routers/nomadvip.py @@ -492,7 +492,8 @@ async def nomadvip_wechat_profile(item: dict): except Exception: pass - link_by_email = _pb_list_email_links(admin_token, email)[0] if email else None + link_email_items = _pb_list_email_links(admin_token, email) if email else [] + link_by_email = link_email_items[0] if link_email_items else None link_by_user_id = ( _pb_find_email_link_by_user_id(admin_token, user_id) if user_id and not anonymous_user_id @@ -601,7 +602,8 @@ async def nomadvip_identity_diagnose(item: dict): wechat_record = ( _pb_get_wechat_private_user(admin_token, wechat_userid) if wechat_userid else None ) - link_by_email = _pb_list_email_links(admin_token, email)[0] if email else None + link_email_items = _pb_list_email_links(admin_token, email) if email else [] + link_by_email = link_email_items[0] if link_email_items else None link_by_user_id = _pb_find_email_link_by_user_id(admin_token, user_id) if user_id else None link_by_anonymous = ( _pb_find_email_link_by_anonymous_user_id(admin_token, user_id)