apifm-webapi 25.5.13 → 25.6.30

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 +33 -1
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -1232,6 +1232,27 @@ module.exports = {
1232
1232
  jsonDelete: (token = '', id) => {
1233
1233
  return request('/json/delete', true, 'post', { token, id })
1234
1234
  },
1235
+ jsonTop: (token, id, isTop) => {
1236
+ return request('/json/top', true, 'post', { token, id, isTop })
1237
+ },
1238
+ jsonHighlight: (token, id, isHighlight) => {
1239
+ return request('/json/highlight', true, 'post', { token, id, isHighlight })
1240
+ },
1241
+ jsonListV3: (data) => {
1242
+ return request('https://common.apifm.com/' + subDomain + '/json/list', true, 'post', data)
1243
+ },
1244
+ jsonSetV2: (data) => {
1245
+ return request('https://common.apifm.com/' + subDomain + '/json/set', true, 'post', data)
1246
+ },
1247
+ jsonDeleteV2: (data) => {
1248
+ return request('https://common.apifm.com/' + subDomain + '/json/delete', true, 'post', data)
1249
+ },
1250
+ jsonTopv2: (data) => {
1251
+ return request('https://common.apifm.com/' + subDomain + '/json/top', true, 'post', data)
1252
+ },
1253
+ jsonHighlightv2: (data) => {
1254
+ return request('https://common.apifm.com/' + subDomain + '/json/highlight', true, 'post', data)
1255
+ },
1235
1256
  graphValidateCodeUrl: (key = Math.random()) => {
1236
1257
  const _url = API_BASE_URL + '/' + subDomain + '/verification/pic/get?key=' + key
1237
1258
  return _url
@@ -1872,11 +1893,22 @@ module.exports = {
1872
1893
  queryExts: 'wxintroduction'
1873
1894
  })
1874
1895
  },
1896
+ jdvopGoodsDetailV3: data => {
1897
+ return request(`https://jdvop.apifm.com/jdvop/${merchantId}/goods/v2/detail`, false, 'get', data)
1898
+ },
1875
1899
  jdvopGoodsSkuImages: goodsId => {
1876
- return request(`/jdvop/${merchantId}/goods/skuImages`, false, 'get', {
1900
+ return request(`https://jdvop.apifm.com/jdvop/${merchantId}/goods/skuImages`, false, 'get', {
1901
+ skuId: goodsId
1902
+ })
1903
+ },
1904
+ jdvopGoodsSkuImagesV2: goodsId => {
1905
+ return request(`https://jdvop.apifm.com/jdvop/${merchantId}/goods/v2/skuImages`, false, 'get', {
1877
1906
  skuId: goodsId
1878
1907
  })
1879
1908
  },
1909
+ jdVopSkuGoodsSaleRule: skuId => {
1910
+ return request(`https://jdvop.apifm.com/jdvop/${merchantId}/goods/v2/checkSkuSaleList`, false, 'get', { skuId })
1911
+ },
1880
1912
  jdvopCartInfo: token => {
1881
1913
  return request(`/jdvop/${merchantId}/shopping-cart/info`, false, 'get', {
1882
1914
  token
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "apifm-webapi",
3
- "version": "25.05.13",
4
- "description": "接口升级",
3
+ "version": "25.06.30",
4
+ "description": "json接口升级到version 2.0",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"