feat: 投诉工单支持填写QQ/微信/手机联系方式
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -333,6 +333,9 @@ def serialize_gongdan(gd, include_images=True, include_shengji=False, *, viewer_
|
||||
'chongzhi_id': gd.chongzhi_id or '',
|
||||
'fadan_id': gd.fadan_id or '',
|
||||
'shuoming': gd.shuoming or '',
|
||||
'contact_qq': getattr(gd, 'contact_qq', '') or '',
|
||||
'contact_wechat': getattr(gd, 'contact_wechat', '') or '',
|
||||
'contact_phone': getattr(gd, 'contact_phone', '') or '',
|
||||
'club_id': gd.club_id or '',
|
||||
'zhuangtai': gd.zhuangtai,
|
||||
'zhuangtai_label': STATUS_LABELS.get(gd.zhuangtai, str(gd.zhuangtai)),
|
||||
@@ -601,6 +604,9 @@ def create_gongdan(
|
||||
target_role=None,
|
||||
target_user_id=None,
|
||||
image_urls=None,
|
||||
contact_qq=None,
|
||||
contact_wechat=None,
|
||||
contact_phone=None,
|
||||
):
|
||||
try:
|
||||
leixing = int(leixing)
|
||||
@@ -640,6 +646,9 @@ def create_gongdan(
|
||||
target_role=t_role or '',
|
||||
target_user_id=t_uid or '',
|
||||
shuoming=text,
|
||||
contact_qq=_trim(contact_qq or '', 32),
|
||||
contact_wechat=_trim(contact_wechat or '', 64),
|
||||
contact_phone=_trim(contact_phone or '', 20),
|
||||
shenqingren_id=yonghuid,
|
||||
club_id=club_id or None,
|
||||
zhuangtai=STATUS_PROCESSING,
|
||||
|
||||
Reference in New Issue
Block a user