@cpzxrobot/sdk 1.2.68 → 1.2.69

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/dist/index.js CHANGED
@@ -119,7 +119,7 @@ class Cpzxrobot {
119
119
  if (value && typeof value === 'object' && !Array.isArray(value)) {
120
120
  Object.assign(result, flattenParams(value, fullKey));
121
121
  }
122
- else {
122
+ else if (value) {
123
123
  result[fullKey] = value.toString();
124
124
  }
125
125
  });
package/index.ts CHANGED
@@ -137,7 +137,7 @@ export class Cpzxrobot {
137
137
  const fullKey = prefix ? `${prefix}[${key}]` : key;
138
138
  if (value && typeof value === 'object' && !Array.isArray(value)) {
139
139
  Object.assign(result, flattenParams(value, fullKey));
140
- } else {
140
+ } else if(value){
141
141
  result[fullKey] = value.toString();
142
142
  }
143
143
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cpzxrobot/sdk",
3
- "version": "1.2.68",
3
+ "version": "1.2.69",
4
4
  "description": "提供给上海正芯数智APP第三方H5应用使用的SDK",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {