@tmsfe/tms-core 0.0.107 → 0.0.109

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tmsfe/tms-core",
3
- "version": "0.0.107",
3
+ "version": "0.0.109",
4
4
  "description": "tms运行时框架",
5
5
  "repository": {
6
6
  "type": "git",
@@ -37,11 +37,10 @@ export const callCloudFunc = async (name = '', data = {}, withAuth = true) => {
37
37
  }
38
38
 
39
39
  const res = await new Promise((resolve, reject) => {
40
- const config = { env: cloudEnvId };
41
40
  wx.cloud.callFunction({
42
41
  name,
43
42
  data: mergedData,
44
- config,
43
+ config: { env: cloudEnvId },
45
44
  success: (res) => {
46
45
  let result = JSON.stringify(res);
47
46
  if (result.length > 500) {
@@ -49,7 +48,7 @@ export const callCloudFunc = async (name = '', data = {}, withAuth = true) => {
49
48
  }
50
49
  const obj = {
51
50
  name,
52
- config,
51
+ env: cloudEnvId,
53
52
  params: JSON.stringify(mergedData),
54
53
  res: result,
55
54
  };
@@ -59,10 +58,9 @@ export const callCloudFunc = async (name = '', data = {}, withAuth = true) => {
59
58
  resolve(res);
60
59
  },
61
60
  fail: (err) => {
62
- debugger
63
61
  const obj = {
64
62
  name,
65
- config,
63
+ env: cloudEnvId,
66
64
  params: JSON.stringify(mergedData),
67
65
  err: JSON.stringify(err),
68
66
  };