hunter-open-sdk 1.1.1-beta.3 → 1.1.1-beta.4
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.
|
@@ -165,17 +165,20 @@ var DevicePair = /*#__PURE__*/function () {
|
|
|
165
165
|
case 0:
|
|
166
166
|
udid = _args3.length > 0 && _args3[0] !== undefined ? _args3[0] : '';
|
|
167
167
|
params = _args3.length > 1 ? _args3[1] : undefined;
|
|
168
|
-
|
|
169
|
-
|
|
168
|
+
_context3.next = 4;
|
|
169
|
+
return getTrustStatusOnce(udid, params);
|
|
170
|
+
case 4:
|
|
171
|
+
trustStatusOnceRes = _context3.sent;
|
|
172
|
+
// 未信任弹起信任窗口
|
|
170
173
|
if (!trustStatusOnceRes) {
|
|
171
174
|
// 发布配对
|
|
172
175
|
publishPair(udid, params);
|
|
173
176
|
}
|
|
174
177
|
|
|
175
178
|
// 通过 trust_status 来判断信任状态
|
|
176
|
-
_context3.next =
|
|
179
|
+
_context3.next = 8;
|
|
177
180
|
return getTrustStatus(udid, params);
|
|
178
|
-
case
|
|
181
|
+
case 8:
|
|
179
182
|
trustStatusRes = _context3.sent;
|
|
180
183
|
if (trustStatusRes) {
|
|
181
184
|
saasCallBack({
|
|
@@ -186,7 +189,7 @@ var DevicePair = /*#__PURE__*/function () {
|
|
|
186
189
|
}
|
|
187
190
|
});
|
|
188
191
|
}
|
|
189
|
-
case
|
|
192
|
+
case 10:
|
|
190
193
|
case "end":
|
|
191
194
|
return _context3.stop();
|
|
192
195
|
}
|