apifm-webapi 24.9.22 → 24.11.20

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/index.js +6 -3
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -54,12 +54,12 @@ baseRequest.interceptors.response.use(
54
54
  )
55
55
 
56
56
  const request = (url, needSubDomain, method, data) => {
57
- let _url = (needSubDomain ? '/' + subDomain : '') + url
57
+ let _url = API_BASE_URL + (needSubDomain ? '/' + subDomain : '') + url
58
58
  if (url.indexOf("http") == 0 ) {
59
59
  _url = url
60
60
  }
61
61
  return baseRequest({
62
- url: API_BASE_URL + _url,
62
+ url: _url,
63
63
  needSubDomain: needSubDomain,
64
64
  method: method,
65
65
  params: method == 'get' || method == 'GET' ? data : {},
@@ -866,7 +866,10 @@ module.exports = {
866
866
  })
867
867
  },
868
868
  wxaQrcode: (data) => {
869
- return request('/qrcode/wxa/unlimit', true, 'post', data)
869
+ return request('https://oss.apifm.com/' + subDomain + '/qrcode/wxa/unlimit', true, 'post', data)
870
+ },
871
+ commonQrcode: (data) => {
872
+ return request('https://oss.apifm.com/' + subDomain + '/qrcode/content', true, 'post', data)
870
873
  },
871
874
  uploadFile: (tempFilePath, expireHours) => {
872
875
  const uploadUrl = API_BASE_URL + '/' + subDomain + '/dfs/upload/file'
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "apifm-webapi",
3
- "version": "24.09.22",
4
- "description": "增加stripe支付接口",
3
+ "version": "24.11.20",
4
+ "description": "二维码、小程序码获取接口地址更换",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"