riku
2026-01-21 a2c5def7cf9562312a54216bc195a6ea071a26c5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
const $f = require('./baserequest')
 
module.exports = {
  //企业信息认证
  authCompany: function (wxUserId, company, fun) {
    let cb = {
      url: '/auth/company',
      params: {
        wxUserId: wxUserId,
      },
      data: company,
    }
    Object.assign(cb, fun)
 
    $f.post(cb)
  },
 
  //场景信息认证
  authScene: function (wxUserId, sceneType, sceneInfo, fun) {
    let cb = {
      url: '/auth/scene',
      params: {
        wxUserId: wxUserId,
        sceneType: sceneType
      },
      data: sceneInfo,
    }
    Object.assign(cb, fun)
 
    $f.post(cb)
  },
 
  //个人信息认证
  authPersonal: function (wxUserId, personal, fun) {
    let cb = {
      url: '/auth/personal',
      params: {
        wxUserId: wxUserId,
      },
      data: personal,
    }
    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)
  },
}