天波h5前端应用
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

49 行
1.1KB

  1. /*
  2. * @Date: 2021-06-30 14:29:56
  3. * @LastEditors: JinxChen
  4. * @LastEditTime: 2023-02-25 10:44:01
  5. * @FilePath: \TelpoH5FrontendWeb\src\api\wx.js
  6. * @description: 功能
  7. */
  8. import request from '@/http/webapi';
  9. const APIWx = {
  10. createJSSDK,
  11. checkIsNewCustomer, //获取微信用户是否首次关注,即是否是新用户
  12. ocr, //ocr识别
  13. Effective, //激活接口
  14. }
  15. export default APIWx;
  16. function createJSSDK({ userId, sUrl, appId }) {
  17. return request({
  18. url: '/api/WX/CreateJsSdk',
  19. method: 'get',
  20. params: { userId, sUrl, appId },
  21. })
  22. }
  23. function checkIsNewCustomer(params) {
  24. return request({
  25. url: '/api/User/getOpenId',
  26. method: 'post',
  27. headers: { AuthKey: 'key1' },
  28. data: params,
  29. })
  30. }
  31. function ocr(params) {
  32. return request({
  33. url: '/api/WX/ocr',
  34. method: 'post',
  35. headers: { AuthKey: 'key1' },
  36. data: params,
  37. })
  38. }
  39. // 中亿SIM自动激活接口
  40. function Effective(params) {
  41. return request({
  42. url: '/api/Command/Effective',
  43. method: 'post',
  44. data: params,
  45. });
  46. }