riku
2022-10-17 eb7366f400867d3f401fe60f06d848d6d1448457
service/userservice.js
@@ -34,12 +34,15 @@
    $f.get(cb)
  },
  //获取用户基础信息
  getBaseInfo: function (userId, fun) {
  getBaseInfo: function (userId, fun, wxUserId) {
    let cb = {
      url: `/userInfo/baseInfo`,
      params: {
        userId: userId
      }
    }
    if (wxUserId) {
      cb.params.wxUserId = wxUserId
    }
    Object.assign(cb, fun)
@@ -58,13 +61,31 @@
  },
  //场景信息认证
  authScene: function (userId, info, fun) {
  authScene: function (wxUserId, sceneType, sceneInfo, fun) {
    let cb = {
      url: '/wxuser/loginPW',
      data: accessTokenPW,
      url: '/auth/scene',
      params: {
        wxUserId: wxUserId,
        sceneType: sceneType
      },
      data: sceneInfo,
    }
    Object.assign(cb, fun)
    $f.post(cb)
  },
  //获取用户认证状态
  getAuthStatus: function (wxUserId, userId, fun) {
    let cb = {
      url: `/auth/status`,
      params: {
        wxUserId: wxUserId,
        userId: userId
      }
    }
    Object.assign(cb, fun)
    $f.get(cb)
  },
}