component-shipinlv 2.2.2 → 2.2.5
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.
@@ -18,7 +18,7 @@ var ActiveAccountModeTask = /*#__PURE__*/function () {
|
|
18
18
|
function ActiveAccountModeTask(env) {
|
19
19
|
var _this = this;
|
20
20
|
_classCallCheck(this, ActiveAccountModeTask);
|
21
|
-
_defineProperty(this, "loopSecond",
|
21
|
+
_defineProperty(this, "loopSecond", 1 * 60);
|
22
22
|
_defineProperty(this, "modeSetting", {
|
23
23
|
dayTimeHourList: [],
|
24
24
|
dayPublishMaxAmount: 6,
|
@@ -31,6 +31,9 @@ var ActiveAccountModeTask = /*#__PURE__*/function () {
|
|
31
31
|
_defineProperty(this, "accountList", []);
|
32
32
|
_defineProperty(this, "planDict", {});
|
33
33
|
this.env = env;
|
34
|
+
if (env && env !== 'prod') {
|
35
|
+
this.loopSecond = 50;
|
36
|
+
}
|
34
37
|
// this.timer = setInterval(() => {
|
35
38
|
// this.loop();
|
36
39
|
// }, this.loopSecond * 1e3 )
|
@@ -175,7 +178,7 @@ var ActiveAccountModeTask = /*#__PURE__*/function () {
|
|
175
178
|
_context2.next = 47;
|
176
179
|
break;
|
177
180
|
}
|
178
|
-
console.log('no videoFromFolder :', accountItem.nickname);
|
181
|
+
console.log('no videoFromFolder :', accountItem.id, accountItem.nickname);
|
179
182
|
return _context2.abrupt("continue", 56);
|
180
183
|
case 47:
|
181
184
|
// 删除 此账户下面,所有已经发布的视频
|
@@ -240,7 +243,7 @@ var ActiveAccountModeTask = /*#__PURE__*/function () {
|
|
240
243
|
// 先不管 每天做了一部分的,假设 每次都是 做完整
|
241
244
|
// 到这里来,肯定没做够
|
242
245
|
videoFromFolder = (_this$accountList$fil = this.accountList.filter(function (item) {
|
243
|
-
return item.id;
|
246
|
+
return item.id === videoAccountId;
|
244
247
|
})) === null || _this$accountList$fil === void 0 || (_this$accountList$fil = _this$accountList$fil[0]) === null || _this$accountList$fil === void 0 ? void 0 : _this$accountList$fil.videoFromFolder;
|
245
248
|
if (videoFromFolder) {
|
246
249
|
_context3.next = 4;
|
@@ -637,52 +640,53 @@ var ActiveAccountModeTask = /*#__PURE__*/function () {
|
|
637
640
|
topicList: []
|
638
641
|
});
|
639
642
|
case 4:
|
640
|
-
console.log('fileList:', fileList.length, needTaskCount
|
643
|
+
console.log('fileList fileList, needTaskCount:', fileList.length, needTaskCount);
|
644
|
+
console.log('fileList videoAccountId :', videoAccountId, videoFromFolder);
|
641
645
|
videoList = []; // 获取视频
|
642
646
|
_iterator4 = _createForOfIteratorHelper(fileList);
|
643
|
-
_context10.prev =
|
647
|
+
_context10.prev = 8;
|
644
648
|
_iterator4.s();
|
645
|
-
case
|
649
|
+
case 10:
|
646
650
|
if ((_step4 = _iterator4.n()).done) {
|
647
|
-
_context10.next =
|
651
|
+
_context10.next = 26;
|
648
652
|
break;
|
649
653
|
}
|
650
654
|
filePath = _step4.value;
|
651
655
|
_this$getCommandByPat = this.getCommandByPath(filePath), command = _this$getCommandByPat.command;
|
652
656
|
if (command) {
|
653
|
-
_context10.next =
|
657
|
+
_context10.next = 17;
|
654
658
|
break;
|
655
659
|
}
|
656
660
|
videoList.push(filePath);
|
657
|
-
_context10.next =
|
661
|
+
_context10.next = 24;
|
658
662
|
break;
|
659
|
-
case
|
663
|
+
case 17:
|
660
664
|
_context10.t0 = command;
|
661
|
-
_context10.next = _context10.t0 === 'needDel' ?
|
665
|
+
_context10.next = _context10.t0 === 'needDel' ? 20 : _context10.t0 === 'waitPublish' ? 22 : 24;
|
662
666
|
break;
|
663
|
-
case
|
667
|
+
case 20:
|
664
668
|
delFile(filePath);
|
665
|
-
return _context10.abrupt("break",
|
666
|
-
case
|
669
|
+
return _context10.abrupt("break", 24);
|
670
|
+
case 22:
|
667
671
|
this.fileTimeTooLongNeedDel(filePath);
|
668
|
-
return _context10.abrupt("break",
|
669
|
-
case
|
670
|
-
_context10.next =
|
672
|
+
return _context10.abrupt("break", 24);
|
673
|
+
case 24:
|
674
|
+
_context10.next = 10;
|
671
675
|
break;
|
672
|
-
case
|
673
|
-
_context10.next =
|
676
|
+
case 26:
|
677
|
+
_context10.next = 31;
|
674
678
|
break;
|
675
|
-
case
|
676
|
-
_context10.prev =
|
677
|
-
_context10.t1 = _context10["catch"](
|
679
|
+
case 28:
|
680
|
+
_context10.prev = 28;
|
681
|
+
_context10.t1 = _context10["catch"](8);
|
678
682
|
_iterator4.e(_context10.t1);
|
679
|
-
case
|
680
|
-
_context10.prev =
|
683
|
+
case 31:
|
684
|
+
_context10.prev = 31;
|
681
685
|
_iterator4.f();
|
682
|
-
return _context10.finish(
|
683
|
-
case
|
686
|
+
return _context10.finish(31);
|
687
|
+
case 34:
|
684
688
|
if (!(videoList.length === 0)) {
|
685
|
-
_context10.next =
|
689
|
+
_context10.next = 37;
|
686
690
|
break;
|
687
691
|
}
|
688
692
|
console.log('文件夹 没 可用的视频,跳过 2:', videoAccountId, videoFromFolder);
|
@@ -690,22 +694,22 @@ var ActiveAccountModeTask = /*#__PURE__*/function () {
|
|
690
694
|
videoList: videoList,
|
691
695
|
topicList: []
|
692
696
|
});
|
693
|
-
case
|
694
|
-
_context10.next =
|
697
|
+
case 37:
|
698
|
+
_context10.next = 39;
|
695
699
|
return this.getTopicList(videoFromFolder).catch(function () {
|
696
700
|
return [];
|
697
701
|
});
|
698
|
-
case
|
702
|
+
case 39:
|
699
703
|
topicList = _context10.sent;
|
700
704
|
return _context10.abrupt("return", {
|
701
705
|
videoList: this.getaArrayRandList(videoList, needTaskCount),
|
702
706
|
topicList: this.getaArrayRandList(topicList, 5)
|
703
707
|
});
|
704
|
-
case
|
708
|
+
case 41:
|
705
709
|
case "end":
|
706
710
|
return _context10.stop();
|
707
711
|
}
|
708
|
-
}, _callee10, this, [[
|
712
|
+
}, _callee10, this, [[8, 28, 31, 34]]);
|
709
713
|
}));
|
710
714
|
function getFileList(_x12, _x13, _x14) {
|
711
715
|
return _getFileList.apply(this, arguments);
|
@@ -217,7 +217,7 @@ var HomePageAccountList = function HomePageAccountList(_ref) {
|
|
217
217
|
taskId: 0,
|
218
218
|
chromePath: settingConfig.chromePath,
|
219
219
|
chromeProfileName: chromeProfileName,
|
220
|
-
url: 'https://www.douyin.com/',
|
220
|
+
url: 'https://www.douyin.com/user/self?from_tab_name=main',
|
221
221
|
proxyInfo: proxyInfo,
|
222
222
|
isOpen: true // settingConfig.isChromeOpen,
|
223
223
|
}, true, env);
|
@@ -172,11 +172,14 @@ var VideoPublishTaskPlanList = function VideoPublishTaskPlanList(_ref) {
|
|
172
172
|
dataIndex: 'videoUrl',
|
173
173
|
key: 'videoUrl',
|
174
174
|
render: function render(videoUrl) {
|
175
|
-
return /*#__PURE__*/_jsx(
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
175
|
+
return /*#__PURE__*/_jsx(Tooltip, {
|
176
|
+
title: videoUrl,
|
177
|
+
children: /*#__PURE__*/_jsx("a", {
|
178
|
+
onClick: function onClick() {
|
179
|
+
return onMediaShowView('', videoUrl, 'video');
|
180
|
+
},
|
181
|
+
children: /*#__PURE__*/_jsx(VideoCameraOutlined, {})
|
182
|
+
})
|
180
183
|
});
|
181
184
|
}
|
182
185
|
}, {
|
@@ -3,8 +3,8 @@ import "./base-info.less";
|
|
3
3
|
import { Avatar, Popconfirm, Tooltip } from "antd";
|
4
4
|
import VideoPlatformLogo from "../../component/video-platform/logo";
|
5
5
|
import { CloseOutlined } from "@ant-design/icons";
|
6
|
-
import { Fragment as _Fragment } from "react/jsx-runtime";
|
7
6
|
import { jsxs as _jsxs } from "react/jsx-runtime";
|
7
|
+
import { Fragment as _Fragment } from "react/jsx-runtime";
|
8
8
|
import { jsx as _jsx } from "react/jsx-runtime";
|
9
9
|
var VideoPublishVideoAccountBaseInfo = function VideoPublishVideoAccountBaseInfo(_ref) {
|
10
10
|
var id = _ref.id,
|
@@ -18,7 +18,9 @@ var VideoPublishVideoAccountBaseInfo = function VideoPublishVideoAccountBaseInfo
|
|
18
18
|
onDel = _ref$onDel === void 0 ? function () {} : _ref$onDel;
|
19
19
|
return /*#__PURE__*/_jsx(Tooltip, {
|
20
20
|
title: /*#__PURE__*/_jsxs(_Fragment, {
|
21
|
-
children: ["\u6240\u5C5E\u5206\u7EC4\uFF1A", accountInfo === null || accountInfo === void 0 ? void 0 : accountInfo.groupName
|
21
|
+
children: ["\u6240\u5C5E\u5206\u7EC4\uFF1A", accountInfo === null || accountInfo === void 0 ? void 0 : accountInfo.groupName, /*#__PURE__*/_jsxs("div", {
|
22
|
+
children: ["\u7F16\u53F7\uFF1A", accountInfo === null || accountInfo === void 0 ? void 0 : accountInfo.id]
|
23
|
+
})]
|
22
24
|
}),
|
23
25
|
children: /*#__PURE__*/_jsxs("article", {
|
24
26
|
className: "videoAccountBaseInfo ".concat(className, " ").concat(accountInfo !== null && accountInfo !== void 0 && accountInfo.isLoginValid ? "valid" : "invalid"),
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "component-shipinlv",
|
3
|
-
"version": "2.2.
|
3
|
+
"version": "2.2.5",
|
4
4
|
"description": "",
|
5
5
|
"module": "dist/index.js",
|
6
6
|
"types": "dist/index.d.ts",
|
@@ -69,6 +69,7 @@
|
|
69
69
|
"@ant-design/icons": "^5.x",
|
70
70
|
"@babel/runtime": "^7.23.6",
|
71
71
|
"@umijs/hooks": "^1.9.3",
|
72
|
+
"component-shipinlv": "^2.2.3",
|
72
73
|
"dayjs": "^1.11.12",
|
73
74
|
"jr-qrcode": "^1.1.4",
|
74
75
|
"markdown-to-jsx": "^7.5.0",
|