component-shipinlv 1.3.1 → 1.3.2
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/lib/openChrome.js +8 -14
- package/package.json +1 -1
package/dist/lib/openChrome.js
CHANGED
|
@@ -6,8 +6,6 @@ import Tool from "./Tool";
|
|
|
6
6
|
import notification from "./notification";
|
|
7
7
|
import userAgent from "./user-agent";
|
|
8
8
|
import VideoApiOpenChrome from "./video-api/open-chrome";
|
|
9
|
-
import sleep from "./sleep";
|
|
10
|
-
import VideoApiQuitChrome from "./video-api/quit-chrome";
|
|
11
9
|
import * as VideoPublishCrawlerTaskController from "../service/api/VideoPublishCrawlerTaskController";
|
|
12
10
|
|
|
13
11
|
// @isNew: 只有 新建账户,才要 isNew
|
|
@@ -56,19 +54,15 @@ var openChrome = /*#__PURE__*/function () {
|
|
|
56
54
|
case 8:
|
|
57
55
|
cmdResult = _context.sent;
|
|
58
56
|
console.log("cmd:", query);
|
|
59
|
-
if (cmdResult) {
|
|
60
|
-
|
|
61
|
-
|
|
57
|
+
if (!cmdResult) {
|
|
58
|
+
// await sleep( 6e3 );
|
|
59
|
+
// VideoApiQuitChrome({
|
|
60
|
+
// platform: query.platform,
|
|
61
|
+
// platformVideoAccountId: query.platformAccountId,
|
|
62
|
+
// chromeProfileName: query.chromeProfileName,
|
|
63
|
+
// });
|
|
62
64
|
}
|
|
63
|
-
|
|
64
|
-
return sleep(6e3);
|
|
65
|
-
case 13:
|
|
66
|
-
VideoApiQuitChrome({
|
|
67
|
-
platform: query.platform,
|
|
68
|
-
platformVideoAccountId: query.platformAccountId,
|
|
69
|
-
chromeProfileName: query.chromeProfileName
|
|
70
|
-
});
|
|
71
|
-
case 14:
|
|
65
|
+
case 11:
|
|
72
66
|
case "end":
|
|
73
67
|
return _context.stop();
|
|
74
68
|
}
|