fix: dddhq与dashouxinxi每次请求同步刷新会员clumber
抢单池拉单前先 sync 权益;老端依赖 yaoqiuleixing=0 与 clumber 即时更新。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -337,12 +337,12 @@ class DashouXinxiAPIView(APIView):
|
||||
'chenghao': dashou_profile.chenghao or '',
|
||||
}
|
||||
|
||||
# 4. 查询会员信息(老端 clumber:huiyuanid + daoqi,体验=正式)
|
||||
# 4. 查询会员信息(每次请求同步权益 + clumber,体验=正式)
|
||||
try:
|
||||
from jituan.services.huiyuan_bundle import build_user_clumber
|
||||
from jituan.services.huiyuan_bundle import refresh_grab_pool_membership_state
|
||||
from jituan.services.club_context import resolve_effective_club_id
|
||||
cid = resolve_effective_club_id(request, request.user)
|
||||
huiyuan_list = build_user_clumber(yonghuid, club_id=cid)
|
||||
_, huiyuan_list = refresh_grab_pool_membership_state(yonghuid, club_id=cid)
|
||||
except Exception:
|
||||
huiyuan_list = []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user