瀏覽代碼

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

- 调用红娘签到接口时使用userId替代matchmakerId
- 解决因参数错误导致的签到功能异常问题
李思佳 2 周之前
父節點
當前提交
65834c9f43
共有 1 個文件被更改,包括 2 次插入2 次删除
  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