apifm-webapi 24.11.6 → 24.12.19

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 +34 -1
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -330,6 +330,9 @@ module.exports = {
330
330
  mobile, pwd, deviceId, deviceName
331
331
  })
332
332
  },
333
+ loginMobileV2: data => {
334
+ return request('/user/m/login', true, 'post', data)
335
+ },
333
336
  loginMobileSmsCode: data => {
334
337
  return request('/user/m/loginMobile', true, 'post', data)
335
338
  },
@@ -412,6 +415,21 @@ module.exports = {
412
415
  goodsId, number, token
413
416
  })
414
417
  },
418
+ goodsStatistics: data => {
419
+ return request('/shop/goods/statistics/days', true, 'post', data)
420
+ },
421
+ goodsUseless: (data) => {
422
+ return request('/shop/goods/useful', true, 'post', data)
423
+ },
424
+ pushNewGoods: data => {
425
+ return request('/shop/goods/putOrUpdate', true, 'post', data)
426
+ },
427
+ mygoods: data => {
428
+ return request('/shop/goods/mygoods', true, 'post', data)
429
+ },
430
+ deleteMyGoods: (token, id) => {
431
+ return request('/shop/goods/del', true, 'post', { token, id })
432
+ },
415
433
  goodsPrice: (goodsId, propertyChildIds) => {
416
434
  return request('/shop/goods/price', true, 'post', {
417
435
  goodsId, propertyChildIds
@@ -866,7 +884,10 @@ module.exports = {
866
884
  })
867
885
  },
868
886
  wxaQrcode: (data) => {
869
- return request('/qrcode/wxa/unlimit', true, 'post', data)
887
+ return request('https://oss.apifm.com/' + subDomain + '/qrcode/wxa/unlimit', true, 'post', data)
888
+ },
889
+ commonQrcode: (data) => {
890
+ return request('https://oss.apifm.com/' + subDomain + '/qrcode/content', true, 'post', data)
870
891
  },
871
892
  uploadFile: (tempFilePath, expireHours) => {
872
893
  const uploadUrl = API_BASE_URL + '/' + subDomain + '/dfs/upload/file'
@@ -2142,6 +2163,18 @@ module.exports = {
2142
2163
  newsExtFieldSet: data => {
2143
2164
  return request('/newsExtField/setField', true, 'post', data)
2144
2165
  },
2166
+ newsExtFieldInit: data => {
2167
+ return request('https://cms.apifm.com/' + subDomain + '/newsExtField/initFields', true, 'post', data)
2168
+ },
2169
+ newsExtFieldListV2: data => {
2170
+ return request('https://cms.apifm.com/' + subDomain + '/newsExtField/extFields', true, 'get', data)
2171
+ },
2172
+ newsExtFieldDynamicV2: data => {
2173
+ return request('https://cms.apifm.com/' + subDomain + '/newsExtField/dynamic', true, 'get', data)
2174
+ },
2175
+ newsExtFieldSetV2: data => {
2176
+ return request('https://cms.apifm.com/' + subDomain + '/newsExtField/setField', true, 'post', data)
2177
+ },
2145
2178
  userAttendantList: data => {
2146
2179
  return request('/user/attendant/list', true, 'post', data)
2147
2180
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "apifm-webapi",
3
- "version": "24.11.06",
4
- "description": "增加stripe支付接口",
3
+ "version": "24.12.19",
4
+ "description": "newsExtField 接口升级",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"