component-shipinlv 1.3.1 → 1.3.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -91,7 +91,7 @@ var VideoPublishAccountManageHomePage = function VideoPublishAccountManageHomePa
91
91
  _useState4 = _slicedToArray(_useState3, 2),
92
92
  openMenuItems = _useState4[0],
93
93
  setOpenMenuItems = _useState4[1];
94
- var onOpen = function onOpen(url) {
94
+ var onOpen = function onOpen(key) {
95
95
  // window.getBridge()?.openVideoAccountBrowser(
96
96
  // accountDetail.platform,
97
97
  // '',
@@ -107,7 +107,7 @@ var VideoPublishAccountManageHomePage = function VideoPublishAccountManageHomePa
107
107
  nickname: accountDetail.nickname,
108
108
  chromeProfileName: accountDetail.chromeProfileName,
109
109
  taskId: 0,
110
- url: url,
110
+ url: 'https://creator.douyin.com/creator-micro/content/manage',
111
111
  proxyInfo: accountDetail.proxyInfo,
112
112
  isOpen: true
113
113
  }, false);
@@ -118,7 +118,7 @@ var VideoPublishAccountManageHomePage = function VideoPublishAccountManageHomePa
118
118
  case 'douyin':
119
119
  setOpenMenuItems([{
120
120
  label: '创作者中心(发视频)',
121
- key: 'https://creator.douyin.com/'
121
+ key: 'douyin-create'
122
122
  }]);
123
123
  break;
124
124
  case 'tiktok':
@@ -489,7 +489,7 @@ var PublishTaskPlanClass = /*#__PURE__*/function () {
489
489
  platformAccountId: query.platformVideoAccountId,
490
490
  nickname: query.nickname,
491
491
  taskId: query.taskInfo.taskId,
492
- url: 'https://creator.douyin.com/creator-micro/home',
492
+ url: 'https://creator.douyin.com/creator-micro/content/upload',
493
493
  chromePath: settingConfig.chromePath,
494
494
  chromeProfileName: query.chromeProfileName,
495
495
  isOpen: query.open
@@ -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
- _context.next = 14;
61
- break;
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
- _context.next = 13;
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "component-shipinlv",
3
- "version": "1.3.1",
3
+ "version": "1.3.4",
4
4
  "description": "",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",