apifm-webapi 24.11.20 → 25.1.10

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 +36 -0
  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
@@ -1149,6 +1167,9 @@ module.exports = {
1149
1167
  jsonList: (data) => {
1150
1168
  return request('/json/list', true, 'post', data)
1151
1169
  },
1170
+ jsonListV2: (data) => {
1171
+ return request('/json/list/v2', true, 'post', data)
1172
+ },
1152
1173
  jsonSet: (data) => {
1153
1174
  return request('/json/set', true, 'post', data)
1154
1175
  },
@@ -1469,6 +1490,9 @@ module.exports = {
1469
1490
  commonIP: (ip) => {
1470
1491
  return request('/common/ip', false, 'get', { ip })
1471
1492
  },
1493
+ commonIPV2: (ip = '') => {
1494
+ return request('https://common.apifm.com/' + subDomain + '/common/ip', false, 'get', { ip })
1495
+ },
1472
1496
  peisongfei: () => {
1473
1497
  return request('/fee/peisong/list', true, 'get')
1474
1498
  },
@@ -2145,6 +2169,18 @@ module.exports = {
2145
2169
  newsExtFieldSet: data => {
2146
2170
  return request('/newsExtField/setField', true, 'post', data)
2147
2171
  },
2172
+ newsExtFieldInit: data => {
2173
+ return request('https://cms.apifm.com/' + subDomain + '/newsExtField/initFields', true, 'post', data)
2174
+ },
2175
+ newsExtFieldListV2: data => {
2176
+ return request('https://cms.apifm.com/' + subDomain + '/newsExtField/extFields', true, 'get', data)
2177
+ },
2178
+ newsExtFieldDynamicV2: data => {
2179
+ return request('https://cms.apifm.com/' + subDomain + '/newsExtField/dynamic', true, 'get', data)
2180
+ },
2181
+ newsExtFieldSetV2: data => {
2182
+ return request('https://cms.apifm.com/' + subDomain + '/newsExtField/setField', true, 'post', data)
2183
+ },
2148
2184
  userAttendantList: data => {
2149
2185
  return request('/user/attendant/list', true, 'post', data)
2150
2186
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "apifm-webapi",
3
- "version": "24.11.20",
4
- "description": "二维码、小程序码获取接口地址更换",
3
+ "version": "25.01.10",
4
+ "description": "获取IP归属地新接口",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"