fix: 管事/组长邀请二维码改用小程序新页面路径
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -2843,8 +2843,8 @@ class GuanshiQRCodeView(APIView):
|
||||
logger.info(f"获取到 access_token (前10位): {access_token[:10]}... club={club_id}")
|
||||
|
||||
encoded_invite = urllib.parse.quote(invite_code, safe='')
|
||||
# 兼容页 dashouduan 跳转打手中心;fighter.js 处理 inviteCode 自动注册
|
||||
page_path = f'pages/dashouduan/dashouduan?inviteCode={encoded_invite}'
|
||||
# 管事邀请打手:打手端「我的」pages/fighter/fighter + inviteCode 自动注册
|
||||
page_path = f'pages/fighter/fighter?inviteCode={encoded_invite}'
|
||||
wx_url = f'https://api.weixin.qq.com/wxa/getwxacode?access_token={access_token}'
|
||||
post_data = {
|
||||
'path': page_path,
|
||||
@@ -3079,8 +3079,8 @@ class ZuzhangHaibaoView(APIView):
|
||||
|
||||
# ===== 修改点:使用 A 接口(getwxacode) =====
|
||||
encoded_invite = urllib.parse.quote(invite_code, safe='')
|
||||
# 兼容页 guanshiduan 跳转打手中心(管事 registerType)
|
||||
page_path = f'pages/guanshiduan/guanshiduan?inviteCode={encoded_invite}'
|
||||
# 组长邀请管事:pages/manager/manager → 打手端「我的」管事注册
|
||||
page_path = f'pages/manager/manager?inviteCode={encoded_invite}'
|
||||
|
||||
wx_resp, wx_error = self._request_wx_qrcode(page_path, access_token)
|
||||
if wx_error and is_weixin_token_invalid(wx_error.get('errcode'), wx_error.get('errmsg', '')):
|
||||
|
||||
Reference in New Issue
Block a user