's'
This commit is contained in:
@@ -477,6 +477,16 @@ async def nomadvip_wechat_profile(item: dict):
|
|||||||
except Exception:
|
except Exception:
|
||||||
has_vip_by_pb_user = False
|
has_vip_by_pb_user = False
|
||||||
|
|
||||||
|
has_vip_by_wechat_userid = False
|
||||||
|
if wechat_userid:
|
||||||
|
try:
|
||||||
|
from ..services.pb import get_pb_client
|
||||||
|
|
||||||
|
pb = get_pb_client()
|
||||||
|
has_vip_by_wechat_userid = _uid_has_vip(pb, wechat_userid)
|
||||||
|
except Exception:
|
||||||
|
has_vip_by_wechat_userid = False
|
||||||
|
|
||||||
# 关联补链:当 email + 会员 user_id 能确定时,固化 vip_email_link,打通 payments/users 关系
|
# 关联补链:当 email + 会员 user_id 能确定时,固化 vip_email_link,打通 payments/users 关系
|
||||||
effective_member_user_id = pb_user_id or (
|
effective_member_user_id = pb_user_id or (
|
||||||
user_id if user_id and not anonymous_user_id else ""
|
user_id if user_id and not anonymous_user_id else ""
|
||||||
@@ -537,6 +547,7 @@ async def nomadvip_wechat_profile(item: dict):
|
|||||||
"linked_anonymous_user_id": linked_anonymous_user_id or None,
|
"linked_anonymous_user_id": linked_anonymous_user_id or None,
|
||||||
"has_vip_by_user_id": has_vip_by_user_id,
|
"has_vip_by_user_id": has_vip_by_user_id,
|
||||||
"has_vip_by_pb_user": has_vip_by_pb_user,
|
"has_vip_by_pb_user": has_vip_by_pb_user,
|
||||||
|
"has_vip_by_wechat_userid": has_vip_by_wechat_userid,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -569,6 +580,7 @@ async def nomadvip_wechat_profile(item: dict):
|
|||||||
"linked_anonymous_user_id": linked_anonymous_user_id or None,
|
"linked_anonymous_user_id": linked_anonymous_user_id or None,
|
||||||
"has_vip_by_user_id": has_vip_by_user_id,
|
"has_vip_by_user_id": has_vip_by_user_id,
|
||||||
"has_vip_by_pb_user": has_vip_by_pb_user,
|
"has_vip_by_pb_user": has_vip_by_pb_user,
|
||||||
|
"has_vip_by_wechat_userid": has_vip_by_wechat_userid,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user