apifm-webapi 24.6.19 → 24.6.21

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 -0
  2. package/package.json +2 -2
package/index.js CHANGED
@@ -1971,6 +1971,12 @@ module.exports = {
1971
1971
  tempDataGet: key => {
1972
1972
  return request('/tempData/get', true, 'get', { key })
1973
1973
  },
1974
+ tempDataSetV2: (key, content) => {
1975
+ return request('https://common.apifm.com/' + merchantId + '/tempData/set', true, 'post', { key, content })
1976
+ },
1977
+ tempDataGetV2: key => {
1978
+ return request('https://common.apifm.com/' + merchantId + '/tempData/get', true, 'get', { key })
1979
+ },
1974
1980
  commonDatetime: () => {
1975
1981
  return request('/common/datetime', true, 'get')
1976
1982
  },
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "apifm-webapi",
3
- "version": "24.06.19",
4
- "description": "cms接口升级",
3
+ "version": "24.06.21",
4
+ "description": "临时数据存放接口升级",
5
5
  "main": "index.js",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"