@ray-js/lock-sdk 1.1.3-beta.2 → 1.1.3-beta.3
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/lib/unlock-method.js +13 -11
- package/package.json +1 -1
package/lib/unlock-method.js
CHANGED
|
@@ -399,6 +399,19 @@ export const startAddUnlockMethod = async (params) => {
|
|
|
399
399
|
if (result.sn !== sn) {
|
|
400
400
|
console.warn("AddPassword: An invalid sn may have been reported");
|
|
401
401
|
}
|
|
402
|
+
if (result.stage === 0) {
|
|
403
|
+
monitoringAddReport({
|
|
404
|
+
timeout: params.timeout,
|
|
405
|
+
unlockMethodConfig,
|
|
406
|
+
total: res.total,
|
|
407
|
+
dpCode: addDpCode,
|
|
408
|
+
dpMap: addDpReportMap,
|
|
409
|
+
sn,
|
|
410
|
+
lockUserId,
|
|
411
|
+
userId: params.userId,
|
|
412
|
+
unlockDpId: dpId,
|
|
413
|
+
});
|
|
414
|
+
}
|
|
402
415
|
return result;
|
|
403
416
|
}
|
|
404
417
|
return false;
|
|
@@ -408,17 +421,6 @@ export const startAddUnlockMethod = async (params) => {
|
|
|
408
421
|
},
|
|
409
422
|
});
|
|
410
423
|
if (res.stage === 0) {
|
|
411
|
-
monitoringAddReport({
|
|
412
|
-
timeout: params.timeout,
|
|
413
|
-
unlockMethodConfig,
|
|
414
|
-
total: res.total,
|
|
415
|
-
dpCode: addDpCode,
|
|
416
|
-
dpMap: addDpReportMap,
|
|
417
|
-
sn,
|
|
418
|
-
lockUserId,
|
|
419
|
-
userId: params.userId,
|
|
420
|
-
unlockDpId: dpId,
|
|
421
|
-
});
|
|
422
424
|
return { total: res.total };
|
|
423
425
|
}
|
|
424
426
|
if (res.stage === 0xfd) {
|