Browse Source

fix(mine): 修复红娘签到接口参数错误

- 调用红娘签到接口时使用userId替代matchmakerId
- 解决因参数错误导致的签到功能异常问题
李思佳 2 weeks ago
parent
commit
65834c9f43
1 changed files with 2 additions and 2 deletions
  1. 2 2
      LiangZhiYUMao/pages/mine/index.vue

+ 2 - 2
LiangZhiYUMao/pages/mine/index.vue

@@ -823,8 +823,8 @@ export default {
           // 是红娘,使用红娘签到接口
           console.log('用户是红娘,使用红娘签到接口')
           
-          // 调用红娘签到接口
-          const signRes = await api.matchmaker.doCheckin(matchmakerStatusRes.matchmakerId)
+          // 调用红娘签到接口,直接使用userId作为makerId
+          const signRes = await api.matchmaker.doCheckin(this.userInfo.userId)
           
           // 签到成功后更新状态
           this.checkinData.todayChecked = true