zfb_ioTVsp.js 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. const { request_wxrlxf, wx_rlxf } = require("../func/request");
  2. const base_url = wx_rlxf ? 'https://tx.hz-hanghui.com:8088/yx-fyzd/alipay/api/v1/open/iotvsp/' : 'http://192.168.11.11:9100/yx-fyzd/alipay/api/v1/open/iotvsp/'
  3. const isvPid = '2088721034139660'
  4. const orgOutId = 'xinchengshidaiguangchang'
  5. const componentOutId = 'common_verify_import'
  6. // 录入机构用户信息,获取操作流水号unique_id
  7. const userCreate = data => {
  8. return request_wxrlxf({
  9. url: `${base_url}userwithvid/create`,
  10. method: "post",
  11. type: "application/json",
  12. data: {
  13. componentOutId: componentOutId,
  14. isvPid: isvPid,
  15. orgOutId: orgOutId,
  16. userInfoList: [data]
  17. }
  18. })
  19. }
  20. // 校验用户是否在库
  21. const checkVid = () => {
  22. return request_wxrlxf({
  23. url: `${base_url}user/check`,
  24. method: "post",
  25. type: "application/json",
  26. data: {
  27. isvPid: isvPid,
  28. orgOutId: orgOutId
  29. }
  30. })
  31. }
  32. module.exports = {
  33. userCreate,
  34. checkVid,
  35. isvPid,
  36. orgOutId,
  37. componentOutId
  38. }