feat: 投诉工单正规化(介入/牵连提现拦截,仅俱乐部开关)
支持被投诉对象、平台介入、协商中状态与组长投诉;提现硬拦含管事向上牵连组长,默认仅 lxs 开启。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -402,8 +402,15 @@ class TixianShenqingView(APIView):
|
||||
|
||||
ok, elig_msg, extra = validate_withdraw_eligibility(user_main, leixing, jine)
|
||||
if not ok:
|
||||
return Response({'code': 8, 'msg': elig_msg},
|
||||
status=status.HTTP_400_BAD_REQUEST)
|
||||
body = {'code': 8, 'msg': elig_msg}
|
||||
if (extra or {}).get('code') == 'COMPLAINT_BLOCK_WITHDRAW':
|
||||
body['data'] = {
|
||||
'tab': extra.get('tab') or 'received',
|
||||
'reason': extra.get('reason') or '',
|
||||
'count': extra.get('count') or 0,
|
||||
'code': 'COMPLAINT_BLOCK_WITHDRAW',
|
||||
}
|
||||
return Response(body, status=status.HTTP_400_BAD_REQUEST)
|
||||
|
||||
# 3. 根据提现类型扣款(资格已在 validate_withdraw_eligibility 校验)
|
||||
nicheng = extra.get('nicheng', '')
|
||||
|
||||
Reference in New Issue
Block a user