@taole/dev-helper 0.1.29 → 0.1.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.
|
@@ -373,9 +373,10 @@
|
|
|
373
373
|
let data;
|
|
374
374
|
if (extinfo) {
|
|
375
375
|
try {
|
|
376
|
-
const
|
|
377
|
-
if (
|
|
378
|
-
|
|
376
|
+
const extInfo = JSON.parse(extinfo);
|
|
377
|
+
if (extInfo && typeof extInfo === 'object' && !Array.isArray(extInfo)) {
|
|
378
|
+
const { bizInfo = '' } = resolveOpenInstallData();
|
|
379
|
+
data = { bizInfo, extInfo };
|
|
379
380
|
}
|
|
380
381
|
} catch (error) {
|
|
381
382
|
this._log('invalid OpenInstall extinfo', error);
|
package/open-diandian/index.js
CHANGED
|
@@ -368,9 +368,10 @@ function createOpenDiandianElementClass() {
|
|
|
368
368
|
let data;
|
|
369
369
|
if (extinfo) {
|
|
370
370
|
try {
|
|
371
|
-
const
|
|
372
|
-
if (
|
|
373
|
-
|
|
371
|
+
const extInfo = JSON.parse(extinfo);
|
|
372
|
+
if (extInfo && typeof extInfo === 'object' && !Array.isArray(extInfo)) {
|
|
373
|
+
const { bizInfo = '' } = resolveOpenInstallData();
|
|
374
|
+
data = { bizInfo, extInfo };
|
|
374
375
|
}
|
|
375
376
|
} catch (error) {
|
|
376
377
|
this._log('invalid OpenInstall extinfo', error);
|