@iflyrpa/actions 1.2.11-beta.3 → 1.2.11
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/actions/baijiahaoPublish/index.d.ts +0 -6
- package/dist/actions/toutiaoPublish/index.d.ts +0 -16
- package/dist/actions/weixinPublish/index.d.ts +0 -1
- package/dist/bundle.js +75 -1615
- package/dist/bundle.js.map +1 -1
- package/dist/index.d.ts +1 -15
- package/dist/index.js +2805 -4358
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +75 -1627
- package/dist/index.mjs.map +1 -1
- package/dist/types.d.ts +5 -35
- package/dist/utils/index.d.ts +0 -9
- package/package.json +1 -1
- package/dist/actions/common/FansTool/index.d.ts +0 -19
- package/dist/actions/getBaijiaohaoConfig/index.d.ts +0 -13
- package/dist/actions/searchToutiaoLocation/index.d.ts +0 -7
- package/dist/actions/searchToutiaoUserID/index.d.ts +0 -7
package/dist/index.mjs
CHANGED
|
@@ -9,1110 +9,6 @@ import * as __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__ from "@iflyrpa/s
|
|
|
9
9
|
import * as __WEBPACK_EXTERNAL_MODULE_form_data_cf000082__ from "form-data";
|
|
10
10
|
import * as __WEBPACK_EXTERNAL_MODULE_node_buffer_fb286294__ from "node:buffer";
|
|
11
11
|
import * as __WEBPACK_EXTERNAL_MODULE_node_crypto_9ba42079__ from "node:crypto";
|
|
12
|
-
var __webpack_modules__ = {
|
|
13
|
-
"./src/utils/ttABEncrypt.js": function(module, __unused_webpack_exports, __webpack_require__) {
|
|
14
|
-
module = __webpack_require__.nmd(module);
|
|
15
|
-
const a0_0x45db08 = a0_0x4b0d;
|
|
16
|
-
function a0_0x4b0d(_0x2bd218, _0x316d6) {
|
|
17
|
-
const _0x165410 = a0_0x1654();
|
|
18
|
-
return a0_0x4b0d = function(_0x4b0d73, _0x5794db) {
|
|
19
|
-
_0x4b0d73 -= 0x84;
|
|
20
|
-
let _0x1859e3 = _0x165410[_0x4b0d73];
|
|
21
|
-
return _0x1859e3;
|
|
22
|
-
}, a0_0x4b0d(_0x2bd218, _0x316d6);
|
|
23
|
-
}
|
|
24
|
-
(function(_0x1b2596, _0x16c0e0) {
|
|
25
|
-
const _0x1227f1 = a0_0x4b0d, _0x46fb59 = _0x1b2596();
|
|
26
|
-
while(true)try {
|
|
27
|
-
const _0x383dd4 = parseInt(_0x1227f1(0x85)) / 0x1 + -parseInt(_0x1227f1(0xb0)) / 0x2 * (-parseInt(_0x1227f1(0x9b)) / 0x3) + parseInt(_0x1227f1(0xaa)) / 0x4 + -parseInt(_0x1227f1(0xa0)) / 0x5 * (parseInt(_0x1227f1(0x9d)) / 0x6) + parseInt(_0x1227f1(0x86)) / 0x7 + -parseInt(_0x1227f1(0xab)) / 0x8 * (parseInt(_0x1227f1(0x8d)) / 0x9) + parseInt(_0x1227f1(0x91)) / 0xa;
|
|
28
|
-
if (_0x383dd4 === _0x16c0e0) break;
|
|
29
|
-
_0x46fb59['push'](_0x46fb59['shift']());
|
|
30
|
-
} catch (_0x4fc071) {
|
|
31
|
-
_0x46fb59['push'](_0x46fb59['shift']());
|
|
32
|
-
}
|
|
33
|
-
})(a0_0x1654, 0x807f8);
|
|
34
|
-
const Random = Math['random'](), Ts = Date['now'](), Sm3DoneTs = Ts + 0x30, xhrParaDoneTs = Ts + 0x109, xhrReqDoneTs = Ts + 0x10af0;
|
|
35
|
-
function a0_0x1654() {
|
|
36
|
-
const _0x46e031 = [
|
|
37
|
-
'floor',
|
|
38
|
-
'dhzx',
|
|
39
|
-
'map',
|
|
40
|
-
'_compress',
|
|
41
|
-
'charCodeAt',
|
|
42
|
-
'min',
|
|
43
|
-
'invalid\x20j\x20for\x20constant\x20Tj',
|
|
44
|
-
'reset',
|
|
45
|
-
'662|856|1920|977|1920|977|1920|1080|Linux\x20x86_64',
|
|
46
|
-
'6GqxJwW',
|
|
47
|
-
'error',
|
|
48
|
-
'1578UVUSyW',
|
|
49
|
-
'fromCharCode',
|
|
50
|
-
'replace',
|
|
51
|
-
'17445vhaSjq',
|
|
52
|
-
'isNaN',
|
|
53
|
-
'toString',
|
|
54
|
-
'push',
|
|
55
|
-
'length',
|
|
56
|
-
'write',
|
|
57
|
-
'reduce',
|
|
58
|
-
'charAt',
|
|
59
|
-
'reg',
|
|
60
|
-
'split',
|
|
61
|
-
'2475936ufrFMu',
|
|
62
|
-
'2137592VTpBSF',
|
|
63
|
-
'join',
|
|
64
|
-
'Dkdpgh2ZmsQB80/MfvV36XI1R45-WUAlEixNLwoqYTOPuzKFjJnry79HbGcaStCe',
|
|
65
|
-
'exports',
|
|
66
|
-
'fmUmtNjj1OfTrR716RULEyQaLPrOG1jpZz0/4Tyzr7/IbcOXs8PxVxHmrAIsIMm6IfTserj+JgCbPHUssUmedGKwCrIziubgSU0FT1MmqPOZXcPDGB3xUyq+vaM7HZyYgJtKyMR=',
|
|
67
|
-
'48064qVwnFy',
|
|
68
|
-
'concat',
|
|
69
|
-
'prototype',
|
|
70
|
-
'167524mhzzJE',
|
|
71
|
-
'5968354Oyyfma',
|
|
72
|
-
'chunk',
|
|
73
|
-
'string',
|
|
74
|
-
'forEach',
|
|
75
|
-
'size',
|
|
76
|
-
'slice',
|
|
77
|
-
'sort',
|
|
78
|
-
'9BjSPrC',
|
|
79
|
-
'sum',
|
|
80
|
-
'repeat',
|
|
81
|
-
'splice',
|
|
82
|
-
'239400JtRPVl'
|
|
83
|
-
];
|
|
84
|
-
a0_0x1654 = function() {
|
|
85
|
-
return _0x46e031;
|
|
86
|
-
};
|
|
87
|
-
return a0_0x1654();
|
|
88
|
-
}
|
|
89
|
-
class SM3Hasher {
|
|
90
|
-
constructor(){
|
|
91
|
-
const _0x468533 = a0_0x4b0d;
|
|
92
|
-
this[_0x468533(0xa8)] = new Array(0x8), this[_0x468533(0x87)] = [], this[_0x468533(0x8a)] = 0x0, this[_0x468533(0x99)]();
|
|
93
|
-
}
|
|
94
|
-
[a0_0x45db08(0x99)]() {
|
|
95
|
-
const _0x11e792 = a0_0x45db08;
|
|
96
|
-
this[_0x11e792(0xa8)][0x0] = 0x7380166f, this[_0x11e792(0xa8)][0x1] = 0x4914b2b9, this['reg'][0x2] = 0x172442d7, this[_0x11e792(0xa8)][0x3] = 0xda8a0600, this['reg'][0x4] = 0xa96f30bc, this[_0x11e792(0xa8)][0x5] = 0x163138aa, this[_0x11e792(0xa8)][0x6] = 0xe38dee4d, this[_0x11e792(0xa8)][0x7] = 0xb0fb0e4e, this[_0x11e792(0x87)] = [], this[_0x11e792(0x8a)] = 0x0;
|
|
97
|
-
}
|
|
98
|
-
[a0_0x45db08(0xa5)](_0x22d1ef) {
|
|
99
|
-
const _0x182388 = a0_0x45db08;
|
|
100
|
-
var _0x2ded18 = _0x182388(0x88) == typeof _0x22d1ef ? function(_0x5e491d) {
|
|
101
|
-
const _0x12d911 = _0x182388;
|
|
102
|
-
var _0x5795ab = encodeURIComponent(_0x5e491d)[_0x12d911(0x9f)](/%([0-9A-F]{2})/g, function(_0x22d98b, _0x5659da) {
|
|
103
|
-
const _0x357908 = _0x12d911;
|
|
104
|
-
return String[_0x357908(0x9e)]('0x' + _0x5659da);
|
|
105
|
-
}), _0x5c0d1c = new Array(_0x5795ab['length']);
|
|
106
|
-
return Array[_0x12d911(0x84)][_0x12d911(0x89)]['call'](_0x5795ab, function(_0x2e8583, _0x28f42f) {
|
|
107
|
-
const _0x4b2a85 = _0x12d911;
|
|
108
|
-
_0x5c0d1c[_0x28f42f] = _0x2e8583[_0x4b2a85(0x96)](0x0);
|
|
109
|
-
}), _0x5c0d1c;
|
|
110
|
-
}(_0x22d1ef) : _0x22d1ef;
|
|
111
|
-
this['size'] += _0x2ded18['length'];
|
|
112
|
-
var _0xffe4ea = 0x40 - this[_0x182388(0x87)][_0x182388(0xa4)];
|
|
113
|
-
if (_0x2ded18[_0x182388(0xa4)] < _0xffe4ea) this['chunk'] = this[_0x182388(0x87)][_0x182388(0xb1)](_0x2ded18);
|
|
114
|
-
else for(this['chunk'] = this[_0x182388(0x87)][_0x182388(0xb1)](_0x2ded18[_0x182388(0x8b)](0x0, _0xffe4ea)); this[_0x182388(0x87)]['length'] >= 0x40;)this['_compress'](this[_0x182388(0x87)]), _0xffe4ea < _0x2ded18[_0x182388(0xa4)] ? this['chunk'] = _0x2ded18[_0x182388(0x8b)](_0xffe4ea, Math[_0x182388(0x97)](_0xffe4ea + 0x40, _0x2ded18['length'])) : this[_0x182388(0x87)] = [], _0xffe4ea += 0x40;
|
|
115
|
-
}
|
|
116
|
-
[a0_0x45db08(0x8e)](_0x34ff8d, _0xecf9f6) {
|
|
117
|
-
const _0x3ddb20 = a0_0x45db08;
|
|
118
|
-
_0x34ff8d && (this[_0x3ddb20(0x99)](), this[_0x3ddb20(0xa5)](_0x34ff8d)), this['_fill']();
|
|
119
|
-
for(var _0x28ac8a = 0x0; _0x28ac8a < this[_0x3ddb20(0x87)][_0x3ddb20(0xa4)]; _0x28ac8a += 0x40)this[_0x3ddb20(0x95)](this[_0x3ddb20(0x87)]['slice'](_0x28ac8a, _0x28ac8a + 0x40));
|
|
120
|
-
var _0x117621, _0x335539, _0x450e58, _0x5b1ad8 = null;
|
|
121
|
-
if ('hex' == _0xecf9f6) {
|
|
122
|
-
_0x5b1ad8 = '';
|
|
123
|
-
for(_0x28ac8a = 0x0; _0x28ac8a < 0x8; _0x28ac8a++)_0x5b1ad8 += (_0x117621 = this[_0x3ddb20(0xa8)][_0x28ac8a][_0x3ddb20(0xa2)](0x10), _0x335539 = 0x8, _0x450e58 = '0', _0x117621[_0x3ddb20(0xa4)] >= _0x335539 ? _0x117621 : _0x450e58[_0x3ddb20(0x8f)](_0x335539 - _0x117621[_0x3ddb20(0xa4)]) + _0x117621);
|
|
124
|
-
} else for(_0x5b1ad8 = new Array(0x20), _0x28ac8a = 0x0; _0x28ac8a < 0x8; _0x28ac8a++){
|
|
125
|
-
var _0x46ad66 = this[_0x3ddb20(0xa8)][_0x28ac8a];
|
|
126
|
-
_0x5b1ad8[0x4 * _0x28ac8a + 0x3] = (0xff & _0x46ad66) >>> 0x0, _0x46ad66 >>>= 0x8, _0x5b1ad8[0x4 * _0x28ac8a + 0x2] = (0xff & _0x46ad66) >>> 0x0, _0x46ad66 >>>= 0x8, _0x5b1ad8[0x4 * _0x28ac8a + 0x1] = (0xff & _0x46ad66) >>> 0x0, _0x46ad66 >>>= 0x8, _0x5b1ad8[0x4 * _0x28ac8a] = (0xff & _0x46ad66) >>> 0x0;
|
|
127
|
-
}
|
|
128
|
-
return this[_0x3ddb20(0x99)](), _0x5b1ad8;
|
|
129
|
-
}
|
|
130
|
-
['_fill']() {
|
|
131
|
-
const _0xa844a0 = a0_0x45db08;
|
|
132
|
-
var _0x15bc36 = 0x8 * this[_0xa844a0(0x8a)], _0x4a32f3 = this['chunk'][_0xa844a0(0xa3)](0x80) % 0x40;
|
|
133
|
-
for(0x40 - _0x4a32f3 < 0x8 && (_0x4a32f3 -= 0x40); _0x4a32f3 < 0x38; _0x4a32f3++)this[_0xa844a0(0x87)][_0xa844a0(0xa3)](0x0);
|
|
134
|
-
for(var _0x36cc0b = 0x0; _0x36cc0b < 0x4; _0x36cc0b++){
|
|
135
|
-
var _0xd7dcfe = Math[_0xa844a0(0x92)](_0x15bc36 / 0x100000000);
|
|
136
|
-
this['chunk'][_0xa844a0(0xa3)](_0xd7dcfe >>> 0x8 * (0x3 - _0x36cc0b) & 0xff);
|
|
137
|
-
}
|
|
138
|
-
for(_0x36cc0b = 0x0; _0x36cc0b < 0x4; _0x36cc0b++)this[_0xa844a0(0x87)][_0xa844a0(0xa3)](_0x15bc36 >>> 0x8 * (0x3 - _0x36cc0b) & 0xff);
|
|
139
|
-
}
|
|
140
|
-
[a0_0x45db08(0x95)](_0x1e530c) {
|
|
141
|
-
const _0x3c50af = a0_0x45db08;
|
|
142
|
-
function _0x3da582(_0x14b06e, _0x4ec82e) {
|
|
143
|
-
return (_0x14b06e << (_0x4ec82e %= 0x20) | _0x14b06e >>> 0x20 - _0x4ec82e) >>> 0x0;
|
|
144
|
-
}
|
|
145
|
-
function _0x489962(_0x5dd43e) {
|
|
146
|
-
const _0x744660 = a0_0x4b0d;
|
|
147
|
-
return 0x0 <= _0x5dd43e && _0x5dd43e < 0x10 ? 0x79cc4519 : 0x10 <= _0x5dd43e && _0x5dd43e < 0x40 ? 0x7a879d8a : void console[_0x744660(0x9c)](_0x744660(0x98));
|
|
148
|
-
}
|
|
149
|
-
function _0x197f71(_0x5e22dd, _0xfc800b, _0x1300f1, _0xed8891) {
|
|
150
|
-
const _0x3414cb = a0_0x4b0d;
|
|
151
|
-
return 0x0 <= _0x5e22dd && _0x5e22dd < 0x10 ? (_0xfc800b ^ _0x1300f1 ^ _0xed8891) >>> 0x0 : 0x10 <= _0x5e22dd && _0x5e22dd < 0x40 ? (_0xfc800b & _0x1300f1 | _0xfc800b & _0xed8891 | _0x1300f1 & _0xed8891) >>> 0x0 : (console[_0x3414cb(0x9c)]('invalid\x20j\x20for\x20bool\x20function\x20FF'), 0x0);
|
|
152
|
-
}
|
|
153
|
-
function _0x2f42fb(_0x326645, _0x2c63af, _0x558c0d, _0x4a902b) {
|
|
154
|
-
const _0x493bba = a0_0x4b0d;
|
|
155
|
-
return 0x0 <= _0x326645 && _0x326645 < 0x10 ? (_0x2c63af ^ _0x558c0d ^ _0x4a902b) >>> 0x0 : 0x10 <= _0x326645 && _0x326645 < 0x40 ? (_0x2c63af & _0x558c0d | ~_0x2c63af & _0x4a902b) >>> 0x0 : (console[_0x493bba(0x9c)]('invalid\x20j\x20for\x20bool\x20function\x20GG'), 0x0);
|
|
156
|
-
}
|
|
157
|
-
if (_0x1e530c[_0x3c50af(0xa4)] < 0x40) {
|
|
158
|
-
console[_0x3c50af(0x9c)]('compress\x20error:\x20not\x20enough\x20data');
|
|
159
|
-
return;
|
|
160
|
-
}
|
|
161
|
-
for(var _0x23a9bd = function(_0x7114f5) {
|
|
162
|
-
for(var _0x49cf1f = new Array(0x84), _0x698c70 = 0x0; _0x698c70 < 0x10; _0x698c70++)_0x49cf1f[_0x698c70] = _0x7114f5[0x4 * _0x698c70] << 0x18, _0x49cf1f[_0x698c70] |= _0x7114f5[0x4 * _0x698c70 + 0x1] << 0x10, _0x49cf1f[_0x698c70] |= _0x7114f5[0x4 * _0x698c70 + 0x2] << 0x8, _0x49cf1f[_0x698c70] |= _0x7114f5[0x4 * _0x698c70 + 0x3], _0x49cf1f[_0x698c70] >>>= 0x0;
|
|
163
|
-
for(var _0xe5328 = 0x10; _0xe5328 < 0x44; _0xe5328++){
|
|
164
|
-
var _0x2b58f2 = _0x49cf1f[_0xe5328 - 0x10] ^ _0x49cf1f[_0xe5328 - 0x9] ^ _0x3da582(_0x49cf1f[_0xe5328 - 0x3], 0xf);
|
|
165
|
-
_0x2b58f2 = _0x2b58f2 ^ _0x3da582(_0x2b58f2, 0xf) ^ _0x3da582(_0x2b58f2, 0x17), _0x49cf1f[_0xe5328] = (_0x2b58f2 ^ _0x3da582(_0x49cf1f[_0xe5328 - 0xd], 0x7) ^ _0x49cf1f[_0xe5328 - 0x6]) >>> 0x0;
|
|
166
|
-
}
|
|
167
|
-
for(_0xe5328 = 0x0; _0xe5328 < 0x40; _0xe5328++)_0x49cf1f[_0xe5328 + 0x44] = (_0x49cf1f[_0xe5328] ^ _0x49cf1f[_0xe5328 + 0x4]) >>> 0x0;
|
|
168
|
-
return _0x49cf1f;
|
|
169
|
-
}(_0x1e530c), _0x17c086 = this[_0x3c50af(0xa8)][_0x3c50af(0x8b)](0x0), _0x3621a2 = 0x0; _0x3621a2 < 0x40; _0x3621a2++){
|
|
170
|
-
var _0x5959b9 = _0x3da582(_0x17c086[0x0], 0xc) + _0x17c086[0x4] + _0x3da582(_0x489962(_0x3621a2), _0x3621a2), _0x3b42ff = ((_0x5959b9 = _0x3da582(_0x5959b9 = (0xffffffff & _0x5959b9) >>> 0x0, 0x7)) ^ _0x3da582(_0x17c086[0x0], 0xc)) >>> 0x0, _0x50d411 = _0x197f71(_0x3621a2, _0x17c086[0x0], _0x17c086[0x1], _0x17c086[0x2]);
|
|
171
|
-
_0x50d411 = (0xffffffff & (_0x50d411 = _0x50d411 + _0x17c086[0x3] + _0x3b42ff + _0x23a9bd[_0x3621a2 + 0x44])) >>> 0x0;
|
|
172
|
-
var _0x910e21 = _0x2f42fb(_0x3621a2, _0x17c086[0x4], _0x17c086[0x5], _0x17c086[0x6]);
|
|
173
|
-
_0x910e21 = (0xffffffff & (_0x910e21 = _0x910e21 + _0x17c086[0x7] + _0x5959b9 + _0x23a9bd[_0x3621a2])) >>> 0x0, _0x17c086[0x3] = _0x17c086[0x2], _0x17c086[0x2] = _0x3da582(_0x17c086[0x1], 0x9), _0x17c086[0x1] = _0x17c086[0x0], _0x17c086[0x0] = _0x50d411, _0x17c086[0x7] = _0x17c086[0x6], _0x17c086[0x6] = _0x3da582(_0x17c086[0x5], 0x13), _0x17c086[0x5] = _0x17c086[0x4], _0x17c086[0x4] = (_0x910e21 ^ _0x3da582(_0x910e21, 0x9) ^ _0x3da582(_0x910e21, 0x11)) >>> 0x0;
|
|
174
|
-
}
|
|
175
|
-
for(var _0x459622 = 0x0; _0x459622 < 0x8; _0x459622++)this['reg'][_0x459622] = (this[_0x3c50af(0xa8)][_0x459622] ^ _0x17c086[_0x459622]) >>> 0x0;
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
function EnvData2CharCode(_0x58cd97, _0x23e1e0, _0x3ca6b2) {
|
|
179
|
-
const _0x56cb93 = a0_0x45db08;
|
|
180
|
-
let _0x2d49d4 = 0xf0 * Random >> 0x0 > 0x6d ? (0xf0 * Random >> 0x0) + 0x2 : 0xf0 * Random >> 0x0, _0x3f2013 = 0xff * Random >> 0x0 & 0x4d | 178, _0x4b8ded = [
|
|
181
|
-
0xffff * Random & 170 | 0x55 & [
|
|
182
|
-
0x1,
|
|
183
|
-
0x0,
|
|
184
|
-
0x1,
|
|
185
|
-
0xf
|
|
186
|
-
][_0x56cb93(0x8b)](0x0, 0x2)[0x0],
|
|
187
|
-
0xffff * Random & 85 | 0xaa & [
|
|
188
|
-
0x1,
|
|
189
|
-
0x0,
|
|
190
|
-
0x1,
|
|
191
|
-
0xf
|
|
192
|
-
][_0x56cb93(0x8b)](0x0, 0x2)[0x0],
|
|
193
|
-
0xffff * Random >> 0x8 & 0xaa | 0x55 & [
|
|
194
|
-
0x1,
|
|
195
|
-
0x0,
|
|
196
|
-
0x1,
|
|
197
|
-
0xf
|
|
198
|
-
]['slice'](0x0, 0x2)[0x1],
|
|
199
|
-
0xffff * Random >> 0x8 & 0x55 | 0xaa & [
|
|
200
|
-
0x1,
|
|
201
|
-
0x0,
|
|
202
|
-
0x1,
|
|
203
|
-
0xf
|
|
204
|
-
][_0x56cb93(0x8b)](0x0, 0x2)[0x1],
|
|
205
|
-
0xaa & _0x2d49d4 | 0x55 & [
|
|
206
|
-
0x1,
|
|
207
|
-
0x0,
|
|
208
|
-
0x1,
|
|
209
|
-
0xf
|
|
210
|
-
][_0x56cb93(0x8b)](0x2, 0x4)[0x0],
|
|
211
|
-
0x55 & _0x2d49d4 | 0xaa & [
|
|
212
|
-
0x1,
|
|
213
|
-
0x0,
|
|
214
|
-
0x1,
|
|
215
|
-
0xf
|
|
216
|
-
][_0x56cb93(0x8b)](0x2, 0x4)[0x0],
|
|
217
|
-
0xaa & _0x3f2013 | 0x55 & [
|
|
218
|
-
0x1,
|
|
219
|
-
0x0,
|
|
220
|
-
0x1,
|
|
221
|
-
0xf
|
|
222
|
-
][_0x56cb93(0x8b)](0x2, 0x4)[0x1],
|
|
223
|
-
0x55 & _0x3f2013 | 0xaa & [
|
|
224
|
-
0x1,
|
|
225
|
-
0x0,
|
|
226
|
-
0x1,
|
|
227
|
-
0xf
|
|
228
|
-
][_0x56cb93(0x8b)](0x2, 0x4)[0x1]
|
|
229
|
-
], _0x5bb315 = _0x56cb93(0x9a)['split']('')[_0x56cb93(0x94)]((_0x42b4c4)=>_0x42b4c4[_0x56cb93(0x96)](0x0)), _0x1cdc95 = ((0xff & String(xhrParaDoneTs + 0x3)) + ',')[_0x56cb93(0xa9)]('')[_0x56cb93(0x94)]((_0x58aa5d)=>_0x58aa5d[_0x56cb93(0x96)](0x0));
|
|
230
|
-
const _0x26ee7a = new SM3Hasher(), _0xe2d586 = _0x26ee7a[_0x56cb93(0x8e)](_0x26ee7a['sum'](_0x58cd97 + _0x56cb93(0x93))), _0x571095 = _0x26ee7a[_0x56cb93(0x8e)](_0x26ee7a[_0x56cb93(0x8e)](_0x23e1e0 + 'dhzx')), _0x4dabdb = _0x26ee7a[_0x56cb93(0x8e)](_0x3ca6b2);
|
|
231
|
-
let _0x4139e6 = [
|
|
232
|
-
0x29,
|
|
233
|
-
(xhrReqDoneTs - 0x190e5788800) / 0x3e8 / 0x3c / 0x3c / 0x18 / 0xe >> 0x0,
|
|
234
|
-
0x6,
|
|
235
|
-
xhrParaDoneTs - Ts + 0x3 & 0xff,
|
|
236
|
-
0xff & xhrParaDoneTs,
|
|
237
|
-
xhrParaDoneTs >> 0x8 & 0xff,
|
|
238
|
-
xhrParaDoneTs >> 0x10 & 0xff,
|
|
239
|
-
xhrParaDoneTs >> 0x18 & 0xff,
|
|
240
|
-
xhrParaDoneTs / 0x100 / 0x100 / 0x100 / 0x100 & 0xff,
|
|
241
|
-
xhrParaDoneTs / 0x100 / 0x100 / 0x100 / 0x100 / 0x100 & 0xff,
|
|
242
|
-
xhrParaDoneTs / 0x100 / 0x100 / 0x100 / 0x100 / 0x100 & 255,
|
|
243
|
-
xhrParaDoneTs / 0x100 / 0x100 / 0x100 / 0x100 / 0x100 & 0,
|
|
244
|
-
1,
|
|
245
|
-
0,
|
|
246
|
-
0xa,
|
|
247
|
-
0x4,
|
|
248
|
-
0x4,
|
|
249
|
-
0x0,
|
|
250
|
-
8,
|
|
251
|
-
0,
|
|
252
|
-
0,
|
|
253
|
-
0,
|
|
254
|
-
_0xe2d586[0x9],
|
|
255
|
-
_0xe2d586[0x12],
|
|
256
|
-
0x3,
|
|
257
|
-
_0xe2d586[0x3],
|
|
258
|
-
_0x571095[0xa],
|
|
259
|
-
_0x571095[0x13],
|
|
260
|
-
0x4,
|
|
261
|
-
_0x571095[0x4],
|
|
262
|
-
_0x4dabdb[0xb],
|
|
263
|
-
_0x4dabdb[0x15],
|
|
264
|
-
0x5,
|
|
265
|
-
_0x4dabdb[0x5],
|
|
266
|
-
0xff & Sm3DoneTs,
|
|
267
|
-
Sm3DoneTs >> 0x8 & 0xff,
|
|
268
|
-
Sm3DoneTs >> 0x10 & 0xff,
|
|
269
|
-
Sm3DoneTs >> 0x18 & 0xff,
|
|
270
|
-
Sm3DoneTs / 0x100 / 0x100 / 0x100 / 0x100 & 0xff,
|
|
271
|
-
Sm3DoneTs / 0x100 / 0x100 / 0x100 / 0x100 / 0x100 & 0xff,
|
|
272
|
-
0x3,
|
|
273
|
-
41,
|
|
274
|
-
101,
|
|
275
|
-
0,
|
|
276
|
-
0,
|
|
277
|
-
207,
|
|
278
|
-
4,
|
|
279
|
-
0,
|
|
280
|
-
0,
|
|
281
|
-
_0x5bb315['length'],
|
|
282
|
-
_0x5bb315['length'],
|
|
283
|
-
0x0,
|
|
284
|
-
_0x1cdc95[_0x56cb93(0xa4)],
|
|
285
|
-
_0x1cdc95[_0x56cb93(0xa4)],
|
|
286
|
-
0x0
|
|
287
|
-
], _0x339170 = [
|
|
288
|
-
_0x4139e6[0x9],
|
|
289
|
-
_0x4139e6[0x12],
|
|
290
|
-
_0x4139e6[0x1e],
|
|
291
|
-
_0x4139e6[0x23],
|
|
292
|
-
_0x4139e6[0x2f],
|
|
293
|
-
_0x4139e6[0x4],
|
|
294
|
-
_0x4139e6[0x2c],
|
|
295
|
-
_0x4139e6[0x13],
|
|
296
|
-
_0x4139e6[0xa],
|
|
297
|
-
_0x4139e6[0x17],
|
|
298
|
-
_0x4139e6[0xc],
|
|
299
|
-
_0x4139e6[0x28],
|
|
300
|
-
_0x4139e6[0x19],
|
|
301
|
-
_0x4139e6[0x2a],
|
|
302
|
-
_0x4139e6[0x3],
|
|
303
|
-
_0x4139e6[0x16],
|
|
304
|
-
_0x4139e6[0x26],
|
|
305
|
-
_0x4139e6[0x15],
|
|
306
|
-
_0x4139e6[0x5],
|
|
307
|
-
_0x4139e6[0x2d],
|
|
308
|
-
_0x4139e6[0x1],
|
|
309
|
-
_0x4139e6[0x1d],
|
|
310
|
-
_0x4139e6[0x6],
|
|
311
|
-
_0x4139e6[0x2b],
|
|
312
|
-
_0x4139e6[0x21],
|
|
313
|
-
_0x4139e6[0xe],
|
|
314
|
-
_0x4139e6[0x24],
|
|
315
|
-
_0x4139e6[0x25],
|
|
316
|
-
_0x4139e6[0x2],
|
|
317
|
-
_0x4139e6[0x2e],
|
|
318
|
-
_0x4139e6[0xf],
|
|
319
|
-
_0x4139e6[0x30],
|
|
320
|
-
_0x4139e6[0x1f],
|
|
321
|
-
_0x4139e6[0x1a],
|
|
322
|
-
_0x4139e6[0x10],
|
|
323
|
-
_0x4139e6[0xd],
|
|
324
|
-
_0x4139e6[0x8],
|
|
325
|
-
_0x4139e6[0x29],
|
|
326
|
-
_0x4139e6[0x1b],
|
|
327
|
-
_0x4139e6[0x11],
|
|
328
|
-
_0x4139e6[0x27],
|
|
329
|
-
_0x4139e6[0x14],
|
|
330
|
-
_0x4139e6[0xb],
|
|
331
|
-
_0x4139e6[0x0],
|
|
332
|
-
_0x4139e6[0x22],
|
|
333
|
-
_0x4139e6[0x7],
|
|
334
|
-
_0x4139e6[0x32],
|
|
335
|
-
_0x4139e6[0x33],
|
|
336
|
-
_0x4139e6[0x35],
|
|
337
|
-
_0x4139e6[0x36]
|
|
338
|
-
];
|
|
339
|
-
function _0x56e1cd(_0x24b6d5, _0x196cf7) {
|
|
340
|
-
const _0x2eb1f3 = _0x56cb93;
|
|
341
|
-
return _0x196cf7[_0x2eb1f3(0x8c)]((_0x2171ba, _0x925e58)=>_0x925e58 - _0x2171ba)[_0x2eb1f3(0x89)]((_0x540dbd)=>{
|
|
342
|
-
const _0x2fbb10 = _0x2eb1f3;
|
|
343
|
-
_0x540dbd >= 0x0 && _0x540dbd < _0x24b6d5[_0x2fbb10(0xa4)] && _0x24b6d5[_0x2fbb10(0x90)](_0x540dbd, 0x1);
|
|
344
|
-
}), _0x24b6d5;
|
|
345
|
-
}
|
|
346
|
-
let _0x41ebdd = _0x4b8ded[_0x56cb93(0xb1)](_0x56e1cd(_0x4139e6, [
|
|
347
|
-
0x18,
|
|
348
|
-
0x1c,
|
|
349
|
-
0x20,
|
|
350
|
-
0x31,
|
|
351
|
-
0x34
|
|
352
|
-
])), _0x42a240 = _0x41ebdd[_0x56cb93(0xa6)]((_0x49ec53, _0x3d9ba0)=>_0x49ec53 ^ _0x3d9ba0), _0xeaa831 = _0x339170['concat'](_0x5bb315, _0x1cdc95, _0x42a240), _0x477e24 = [], _0x3bd924 = 0x0;
|
|
353
|
-
for(let _0xa7bf19 = 0x0; _0xa7bf19 + 0x2 < _0xeaa831[_0x56cb93(0xa4)];)_0x477e24[_0x56cb93(0xa3)](0x3e8 * Random & 145 | 0x6e & _0xeaa831[_0xa7bf19++]), _0x477e24['push'](0x3e8 * Random & 66 | 0xbd & _0xeaa831[_0xa7bf19++]), _0x477e24[_0x56cb93(0xa3)](0x3e8 * Random & 44 | 0xd3 & _0xeaa831[_0xa7bf19++]), _0x477e24[_0x56cb93(0xa3)](0x91 & _0xeaa831[_0xa7bf19 - 0x3] | 0x42 & _0xeaa831[_0xa7bf19 - 0x2] | 0x2c & _0xeaa831[_0xa7bf19 - 0x1]), _0x3bd924 += 0x3;
|
|
354
|
-
let _0x23c273 = _0x4b8ded[_0x56cb93(0xb1)](_0x477e24, _0xeaa831[_0x56cb93(0x8b)](_0x3bd924, _0xeaa831[_0x56cb93(0xa4)]));
|
|
355
|
-
return _0x23c273[_0x56cb93(0x94)]((_0x4d13ab)=>String['fromCharCode'](_0x4d13ab))[_0x56cb93(0xac)]('');
|
|
356
|
-
}
|
|
357
|
-
function Base2Data(_0x348aa6) {
|
|
358
|
-
const _0x2bc7c7 = a0_0x45db08;
|
|
359
|
-
let _0x874207 = [
|
|
360
|
-
0xffff * Random & 170 | 0x55 & [
|
|
361
|
-
0x3,
|
|
362
|
-
0x52
|
|
363
|
-
][0x0],
|
|
364
|
-
0xffff * Random & 85 | 0xaa & [
|
|
365
|
-
0x3,
|
|
366
|
-
0x52
|
|
367
|
-
][0x0],
|
|
368
|
-
0x28 * Random >> 0x0 & 0xaa | 0x55 & [
|
|
369
|
-
0x3,
|
|
370
|
-
0x52
|
|
371
|
-
][0x1],
|
|
372
|
-
0x28 * Random >> 0x0 & 0x55 | 0xaa & [
|
|
373
|
-
0x3,
|
|
374
|
-
0x52
|
|
375
|
-
][0x1]
|
|
376
|
-
][_0x2bc7c7(0x94)]((_0x224d00)=>{
|
|
377
|
-
const _0x31697c = _0x2bc7c7;
|
|
378
|
-
return String[_0x31697c(0x9e)](_0x224d00);
|
|
379
|
-
})[_0x2bc7c7(0xac)](''), _0x235e4f = [
|
|
380
|
-
0xff,
|
|
381
|
-
0xfe,
|
|
382
|
-
0xfd,
|
|
383
|
-
0xfc,
|
|
384
|
-
0xfb,
|
|
385
|
-
0xfa,
|
|
386
|
-
0xf9,
|
|
387
|
-
0xf8,
|
|
388
|
-
0xf7,
|
|
389
|
-
0xf6,
|
|
390
|
-
0xf5,
|
|
391
|
-
0xf4,
|
|
392
|
-
0xf3,
|
|
393
|
-
0xf2,
|
|
394
|
-
0xf1,
|
|
395
|
-
0xf0,
|
|
396
|
-
0xef,
|
|
397
|
-
0xee,
|
|
398
|
-
0xed,
|
|
399
|
-
0xec,
|
|
400
|
-
0xeb,
|
|
401
|
-
0xea,
|
|
402
|
-
0xe9,
|
|
403
|
-
0xe8,
|
|
404
|
-
0xe7,
|
|
405
|
-
0xe6,
|
|
406
|
-
0xe5,
|
|
407
|
-
0xe4,
|
|
408
|
-
0xe3,
|
|
409
|
-
0xe2,
|
|
410
|
-
0xe1,
|
|
411
|
-
0xe0,
|
|
412
|
-
0xdf,
|
|
413
|
-
0xde,
|
|
414
|
-
0xdd,
|
|
415
|
-
0xdc,
|
|
416
|
-
0xdb,
|
|
417
|
-
0xda,
|
|
418
|
-
0xd9,
|
|
419
|
-
0xd8,
|
|
420
|
-
0xd7,
|
|
421
|
-
0xd6,
|
|
422
|
-
0xd5,
|
|
423
|
-
0xd4,
|
|
424
|
-
0xd3,
|
|
425
|
-
0xd2,
|
|
426
|
-
0xd1,
|
|
427
|
-
0xd0,
|
|
428
|
-
0xcf,
|
|
429
|
-
0xce,
|
|
430
|
-
0xcd,
|
|
431
|
-
0xcc,
|
|
432
|
-
0xcb,
|
|
433
|
-
0xca,
|
|
434
|
-
0xc9,
|
|
435
|
-
0xc8,
|
|
436
|
-
0xc7,
|
|
437
|
-
0xc6,
|
|
438
|
-
0xc5,
|
|
439
|
-
0xc4,
|
|
440
|
-
0xc3,
|
|
441
|
-
0xc2,
|
|
442
|
-
0xc1,
|
|
443
|
-
0xc0,
|
|
444
|
-
0xbf,
|
|
445
|
-
0xbe,
|
|
446
|
-
0xbd,
|
|
447
|
-
0xbc,
|
|
448
|
-
0xbb,
|
|
449
|
-
0xba,
|
|
450
|
-
0xb9,
|
|
451
|
-
0xb8,
|
|
452
|
-
0xb7,
|
|
453
|
-
0xb6,
|
|
454
|
-
0xb5,
|
|
455
|
-
0xb4,
|
|
456
|
-
0xb3,
|
|
457
|
-
0xb2,
|
|
458
|
-
0xb1,
|
|
459
|
-
0xb0,
|
|
460
|
-
0xaf,
|
|
461
|
-
0xae,
|
|
462
|
-
0xad,
|
|
463
|
-
0xac,
|
|
464
|
-
0xab,
|
|
465
|
-
0xaa,
|
|
466
|
-
0xa9,
|
|
467
|
-
0xa8,
|
|
468
|
-
0xa7,
|
|
469
|
-
0xa6,
|
|
470
|
-
0xa5,
|
|
471
|
-
0xa4,
|
|
472
|
-
0xa3,
|
|
473
|
-
0xa2,
|
|
474
|
-
0xa1,
|
|
475
|
-
0xa0,
|
|
476
|
-
0x9f,
|
|
477
|
-
0x9e,
|
|
478
|
-
0x9d,
|
|
479
|
-
0x9c,
|
|
480
|
-
0x9b,
|
|
481
|
-
0x9a,
|
|
482
|
-
0x99,
|
|
483
|
-
0x98,
|
|
484
|
-
0x97,
|
|
485
|
-
0x96,
|
|
486
|
-
0x95,
|
|
487
|
-
0x94,
|
|
488
|
-
0x93,
|
|
489
|
-
0x92,
|
|
490
|
-
0x91,
|
|
491
|
-
0x90,
|
|
492
|
-
0x8f,
|
|
493
|
-
0x8e,
|
|
494
|
-
0x8d,
|
|
495
|
-
0x8c,
|
|
496
|
-
0x8b,
|
|
497
|
-
0x8a,
|
|
498
|
-
0x89,
|
|
499
|
-
0x88,
|
|
500
|
-
0x87,
|
|
501
|
-
0x86,
|
|
502
|
-
0x85,
|
|
503
|
-
0x84,
|
|
504
|
-
0x83,
|
|
505
|
-
0x82,
|
|
506
|
-
0x81,
|
|
507
|
-
0x80,
|
|
508
|
-
0x7f,
|
|
509
|
-
0x7e,
|
|
510
|
-
0x7d,
|
|
511
|
-
0x7c,
|
|
512
|
-
0x7b,
|
|
513
|
-
0x7a,
|
|
514
|
-
0x79,
|
|
515
|
-
0x78,
|
|
516
|
-
0x77,
|
|
517
|
-
0x76,
|
|
518
|
-
0x75,
|
|
519
|
-
0x74,
|
|
520
|
-
0x73,
|
|
521
|
-
0x72,
|
|
522
|
-
0x71,
|
|
523
|
-
0x70,
|
|
524
|
-
0x6f,
|
|
525
|
-
0x6e,
|
|
526
|
-
0x6d,
|
|
527
|
-
0x6c,
|
|
528
|
-
0x6b,
|
|
529
|
-
0x6a,
|
|
530
|
-
0x69,
|
|
531
|
-
0x68,
|
|
532
|
-
0x67,
|
|
533
|
-
0x66,
|
|
534
|
-
0x65,
|
|
535
|
-
0x64,
|
|
536
|
-
0x63,
|
|
537
|
-
0x62,
|
|
538
|
-
0x61,
|
|
539
|
-
0x60,
|
|
540
|
-
0x5f,
|
|
541
|
-
0x5e,
|
|
542
|
-
0x5d,
|
|
543
|
-
0x5c,
|
|
544
|
-
0x5b,
|
|
545
|
-
0x5a,
|
|
546
|
-
0x59,
|
|
547
|
-
0x58,
|
|
548
|
-
0x57,
|
|
549
|
-
0x56,
|
|
550
|
-
0x55,
|
|
551
|
-
0x54,
|
|
552
|
-
0x53,
|
|
553
|
-
0x52,
|
|
554
|
-
0x51,
|
|
555
|
-
0x50,
|
|
556
|
-
0x4f,
|
|
557
|
-
0x4e,
|
|
558
|
-
0x4d,
|
|
559
|
-
0x4c,
|
|
560
|
-
0x4b,
|
|
561
|
-
0x4a,
|
|
562
|
-
0x49,
|
|
563
|
-
0x48,
|
|
564
|
-
0x47,
|
|
565
|
-
0x46,
|
|
566
|
-
0x45,
|
|
567
|
-
0x44,
|
|
568
|
-
0x43,
|
|
569
|
-
0x42,
|
|
570
|
-
0x41,
|
|
571
|
-
0x40,
|
|
572
|
-
0x3f,
|
|
573
|
-
0x3e,
|
|
574
|
-
0x3d,
|
|
575
|
-
0x3c,
|
|
576
|
-
0x3b,
|
|
577
|
-
0x3a,
|
|
578
|
-
0x39,
|
|
579
|
-
0x38,
|
|
580
|
-
0x37,
|
|
581
|
-
0x36,
|
|
582
|
-
0x35,
|
|
583
|
-
0x34,
|
|
584
|
-
0x33,
|
|
585
|
-
0x32,
|
|
586
|
-
0x31,
|
|
587
|
-
0x30,
|
|
588
|
-
0x2f,
|
|
589
|
-
0x2e,
|
|
590
|
-
0x2d,
|
|
591
|
-
0x2c,
|
|
592
|
-
0x2b,
|
|
593
|
-
0x2a,
|
|
594
|
-
0x29,
|
|
595
|
-
0x28,
|
|
596
|
-
0x27,
|
|
597
|
-
0x26,
|
|
598
|
-
0x25,
|
|
599
|
-
0x24,
|
|
600
|
-
0x23,
|
|
601
|
-
0x22,
|
|
602
|
-
0x21,
|
|
603
|
-
0x20,
|
|
604
|
-
0x1f,
|
|
605
|
-
0x1e,
|
|
606
|
-
0x1d,
|
|
607
|
-
0x1c,
|
|
608
|
-
0x1b,
|
|
609
|
-
0x1a,
|
|
610
|
-
0x19,
|
|
611
|
-
0x18,
|
|
612
|
-
0x17,
|
|
613
|
-
0x16,
|
|
614
|
-
0x15,
|
|
615
|
-
0x14,
|
|
616
|
-
0x13,
|
|
617
|
-
0x12,
|
|
618
|
-
0x11,
|
|
619
|
-
0x10,
|
|
620
|
-
0xf,
|
|
621
|
-
0xe,
|
|
622
|
-
0xd,
|
|
623
|
-
0xc,
|
|
624
|
-
0xb,
|
|
625
|
-
0xa,
|
|
626
|
-
0x9,
|
|
627
|
-
0x8,
|
|
628
|
-
0x7,
|
|
629
|
-
0x6,
|
|
630
|
-
0x5,
|
|
631
|
-
0x4,
|
|
632
|
-
0x3,
|
|
633
|
-
0x2,
|
|
634
|
-
0x1,
|
|
635
|
-
0x0
|
|
636
|
-
];
|
|
637
|
-
const _0x29dde1 = 'Ó'[_0x2bc7c7(0x96)](0x0);
|
|
638
|
-
let _0x4a74f1 = 0x0;
|
|
639
|
-
for(let _0xef36c2 = 0x0; _0xef36c2 < _0x235e4f[_0x2bc7c7(0xa4)]; _0xef36c2++){
|
|
640
|
-
let _0x4120e4 = _0x235e4f[_0xef36c2];
|
|
641
|
-
_0x4a74f1 = (_0x4a74f1 * _0x4120e4 + _0x4a74f1 + _0x29dde1) % 0x100, [_0x235e4f[_0xef36c2], _0x235e4f[_0x4a74f1]] = [
|
|
642
|
-
_0x235e4f[_0x4a74f1],
|
|
643
|
-
_0x235e4f[_0xef36c2]
|
|
644
|
-
];
|
|
645
|
-
}
|
|
646
|
-
let _0x39cb62 = 0x0, _0x5cbaf6 = '';
|
|
647
|
-
for(let _0x29a672 = 0x0; _0x29a672 < _0x348aa6[_0x2bc7c7(0xa4)]; _0x29a672++){
|
|
648
|
-
let _0x96c5ae = _0x348aa6[_0x2bc7c7(0x96)](_0x29a672), _0x46c34b = _0x29a672 + 0x1, _0x5d4cb4 = _0x235e4f[_0x46c34b];
|
|
649
|
-
[_0x235e4f[_0x46c34b], _0x235e4f[(_0x39cb62 + _0x5d4cb4) % 0x100]] = [
|
|
650
|
-
_0x235e4f[(_0x39cb62 + _0x5d4cb4) % 0x100],
|
|
651
|
-
_0x235e4f[_0x46c34b]
|
|
652
|
-
];
|
|
653
|
-
let _0x506f4f = _0x235e4f[(_0x235e4f[_0x46c34b] + _0x5d4cb4) % 0x100];
|
|
654
|
-
_0x39cb62 = (_0x39cb62 + _0x5d4cb4) % 0x100, _0x5cbaf6 += String['fromCharCode'](_0x96c5ae ^ _0x506f4f);
|
|
655
|
-
}
|
|
656
|
-
return _0x874207 + _0x5cbaf6;
|
|
657
|
-
}
|
|
658
|
-
function Data2A_B(_0x19ca6d) {
|
|
659
|
-
const _0x5d8d72 = a0_0x45db08;
|
|
660
|
-
let _0x225e7d = _0x5d8d72(0xad), _0x4f0a28 = '', _0x251d62 = [
|
|
661
|
-
0x3e,
|
|
662
|
-
0x12a,
|
|
663
|
-
0x10,
|
|
664
|
-
0x0,
|
|
665
|
-
0x4,
|
|
666
|
-
0x9,
|
|
667
|
-
0x10,
|
|
668
|
-
0x0,
|
|
669
|
-
0x5,
|
|
670
|
-
0x36,
|
|
671
|
-
0x0,
|
|
672
|
-
0x5,
|
|
673
|
-
0x3e,
|
|
674
|
-
0x12b,
|
|
675
|
-
0x1a,
|
|
676
|
-
0x12c,
|
|
677
|
-
0x36,
|
|
678
|
-
0x0,
|
|
679
|
-
0x5,
|
|
680
|
-
0x3e,
|
|
681
|
-
0x12d,
|
|
682
|
-
0x1a,
|
|
683
|
-
0x12e,
|
|
684
|
-
0x36,
|
|
685
|
-
0x0,
|
|
686
|
-
0x5,
|
|
687
|
-
0x3e,
|
|
688
|
-
0x12f,
|
|
689
|
-
0x1a,
|
|
690
|
-
0x130,
|
|
691
|
-
0x36,
|
|
692
|
-
0x0,
|
|
693
|
-
0x5,
|
|
694
|
-
0x3e,
|
|
695
|
-
0x131,
|
|
696
|
-
0x1a,
|
|
697
|
-
0x10c,
|
|
698
|
-
0x36,
|
|
699
|
-
0x0,
|
|
700
|
-
0x5,
|
|
701
|
-
0x3e,
|
|
702
|
-
0x132,
|
|
703
|
-
0x1a,
|
|
704
|
-
0x128,
|
|
705
|
-
0x36,
|
|
706
|
-
0x0,
|
|
707
|
-
0x5,
|
|
708
|
-
0x36,
|
|
709
|
-
0x0,
|
|
710
|
-
0x3,
|
|
711
|
-
0x4c,
|
|
712
|
-
0x10,
|
|
713
|
-
0x0,
|
|
714
|
-
0x6,
|
|
715
|
-
0x3e,
|
|
716
|
-
0x24,
|
|
717
|
-
0x10,
|
|
718
|
-
0x0,
|
|
719
|
-
0x7,
|
|
720
|
-
0x17,
|
|
721
|
-
0x0,
|
|
722
|
-
0x10,
|
|
723
|
-
0x0,
|
|
724
|
-
0x9,
|
|
725
|
-
0x36,
|
|
726
|
-
0x0,
|
|
727
|
-
0x2,
|
|
728
|
-
0x4,
|
|
729
|
-
0x19,
|
|
730
|
-
0x36,
|
|
731
|
-
0x0,
|
|
732
|
-
0x9,
|
|
733
|
-
0x17,
|
|
734
|
-
0x3,
|
|
735
|
-
0x31,
|
|
736
|
-
0x43,
|
|
737
|
-
0xe,
|
|
738
|
-
0x9f,
|
|
739
|
-
0x36,
|
|
740
|
-
0x0,
|
|
741
|
-
0x2,
|
|
742
|
-
0x16,
|
|
743
|
-
0x4,
|
|
744
|
-
0xf7,
|
|
745
|
-
0x22,
|
|
746
|
-
0x0,
|
|
747
|
-
0x9,
|
|
748
|
-
0x3c,
|
|
749
|
-
0xc,
|
|
750
|
-
0x1,
|
|
751
|
-
0x17,
|
|
752
|
-
0xff,
|
|
753
|
-
0x32,
|
|
754
|
-
0x17,
|
|
755
|
-
0x10,
|
|
756
|
-
0x1f,
|
|
757
|
-
0x36,
|
|
758
|
-
0x0,
|
|
759
|
-
0x2,
|
|
760
|
-
0x16,
|
|
761
|
-
0x4,
|
|
762
|
-
0xf7,
|
|
763
|
-
0x22,
|
|
764
|
-
0x0,
|
|
765
|
-
0x9,
|
|
766
|
-
0x3c,
|
|
767
|
-
0xc,
|
|
768
|
-
0x1,
|
|
769
|
-
0x17,
|
|
770
|
-
0xff,
|
|
771
|
-
0x32,
|
|
772
|
-
0x17,
|
|
773
|
-
0x8,
|
|
774
|
-
0x1f,
|
|
775
|
-
0x20,
|
|
776
|
-
0x36,
|
|
777
|
-
0x0,
|
|
778
|
-
0x2,
|
|
779
|
-
0x16,
|
|
780
|
-
0x4,
|
|
781
|
-
0xf7,
|
|
782
|
-
0x22,
|
|
783
|
-
0x0,
|
|
784
|
-
0x9,
|
|
785
|
-
0x3c,
|
|
786
|
-
0xc,
|
|
787
|
-
0x1,
|
|
788
|
-
0x17,
|
|
789
|
-
0xff,
|
|
790
|
-
0x32,
|
|
791
|
-
0x20,
|
|
792
|
-
0x10,
|
|
793
|
-
0x0,
|
|
794
|
-
0x8,
|
|
795
|
-
0x36,
|
|
796
|
-
0x0,
|
|
797
|
-
0x7,
|
|
798
|
-
0x36,
|
|
799
|
-
0x0,
|
|
800
|
-
0x6,
|
|
801
|
-
0x16,
|
|
802
|
-
0x4,
|
|
803
|
-
0x67,
|
|
804
|
-
0x36,
|
|
805
|
-
0x0,
|
|
806
|
-
0x8,
|
|
807
|
-
0x17,
|
|
808
|
-
0xfc0000,
|
|
809
|
-
0x32,
|
|
810
|
-
0x17,
|
|
811
|
-
0x12,
|
|
812
|
-
0x33,
|
|
813
|
-
0xc,
|
|
814
|
-
0x1,
|
|
815
|
-
0x31,
|
|
816
|
-
0x22,
|
|
817
|
-
0x0,
|
|
818
|
-
0x7,
|
|
819
|
-
0x48,
|
|
820
|
-
0x2b,
|
|
821
|
-
0x36,
|
|
822
|
-
0x0,
|
|
823
|
-
0x7,
|
|
824
|
-
0x36,
|
|
825
|
-
0x0,
|
|
826
|
-
0x6,
|
|
827
|
-
0x16,
|
|
828
|
-
0x4,
|
|
829
|
-
0x67,
|
|
830
|
-
0x36,
|
|
831
|
-
0x0,
|
|
832
|
-
0x8,
|
|
833
|
-
0x17,
|
|
834
|
-
0x3f000,
|
|
835
|
-
0x32,
|
|
836
|
-
0x17,
|
|
837
|
-
0xc,
|
|
838
|
-
0x33,
|
|
839
|
-
0xc,
|
|
840
|
-
0x1,
|
|
841
|
-
0x31,
|
|
842
|
-
0x22,
|
|
843
|
-
0x0,
|
|
844
|
-
0x7,
|
|
845
|
-
0x48,
|
|
846
|
-
0x2b,
|
|
847
|
-
0x36,
|
|
848
|
-
0x0,
|
|
849
|
-
0x7,
|
|
850
|
-
0x36,
|
|
851
|
-
0x0,
|
|
852
|
-
0x6,
|
|
853
|
-
0x16,
|
|
854
|
-
0x4,
|
|
855
|
-
0x67,
|
|
856
|
-
0x36,
|
|
857
|
-
0x0,
|
|
858
|
-
0x8,
|
|
859
|
-
0x17,
|
|
860
|
-
0xfc0,
|
|
861
|
-
0x32,
|
|
862
|
-
0x17,
|
|
863
|
-
0x6,
|
|
864
|
-
0x33,
|
|
865
|
-
0xc,
|
|
866
|
-
0x1,
|
|
867
|
-
0x31,
|
|
868
|
-
0x22,
|
|
869
|
-
0x0,
|
|
870
|
-
0x7,
|
|
871
|
-
0x48,
|
|
872
|
-
0x2b,
|
|
873
|
-
0x36,
|
|
874
|
-
0x0,
|
|
875
|
-
0x7,
|
|
876
|
-
0x36,
|
|
877
|
-
0x0,
|
|
878
|
-
0x6,
|
|
879
|
-
0x16,
|
|
880
|
-
0x4,
|
|
881
|
-
0x67,
|
|
882
|
-
0x36,
|
|
883
|
-
0x0,
|
|
884
|
-
0x8,
|
|
885
|
-
0x17,
|
|
886
|
-
0x3f,
|
|
887
|
-
0x32,
|
|
888
|
-
0xc,
|
|
889
|
-
0x1,
|
|
890
|
-
0x31,
|
|
891
|
-
0x22,
|
|
892
|
-
0x0,
|
|
893
|
-
0x7,
|
|
894
|
-
0x48,
|
|
895
|
-
0x2b,
|
|
896
|
-
0x12,
|
|
897
|
-
-173,
|
|
898
|
-
0x36,
|
|
899
|
-
0x0,
|
|
900
|
-
0x2,
|
|
901
|
-
0x4,
|
|
902
|
-
0x19,
|
|
903
|
-
0x36,
|
|
904
|
-
0x0,
|
|
905
|
-
0x9,
|
|
906
|
-
0x0,
|
|
907
|
-
0x17,
|
|
908
|
-
0x0,
|
|
909
|
-
0x13,
|
|
910
|
-
0xe,
|
|
911
|
-
0xa0,
|
|
912
|
-
0x36,
|
|
913
|
-
0x0,
|
|
914
|
-
0x2,
|
|
915
|
-
0x16,
|
|
916
|
-
0x4,
|
|
917
|
-
0xf7,
|
|
918
|
-
0x22,
|
|
919
|
-
0x0,
|
|
920
|
-
0x9,
|
|
921
|
-
0x3c,
|
|
922
|
-
0xc,
|
|
923
|
-
0x1,
|
|
924
|
-
0x17,
|
|
925
|
-
0xff,
|
|
926
|
-
0x32,
|
|
927
|
-
0x17,
|
|
928
|
-
0x10,
|
|
929
|
-
0x1f,
|
|
930
|
-
0x36,
|
|
931
|
-
0x0,
|
|
932
|
-
0x2,
|
|
933
|
-
0x4,
|
|
934
|
-
0x19,
|
|
935
|
-
0x36,
|
|
936
|
-
0x0,
|
|
937
|
-
0x9,
|
|
938
|
-
0x13,
|
|
939
|
-
0xe,
|
|
940
|
-
0x13,
|
|
941
|
-
0x36,
|
|
942
|
-
0x0,
|
|
943
|
-
0x2,
|
|
944
|
-
0x16,
|
|
945
|
-
0x4,
|
|
946
|
-
0xf7,
|
|
947
|
-
0x36,
|
|
948
|
-
0x0,
|
|
949
|
-
0x9,
|
|
950
|
-
0xc,
|
|
951
|
-
0x1,
|
|
952
|
-
0x17,
|
|
953
|
-
0xff,
|
|
954
|
-
0x32,
|
|
955
|
-
0x17,
|
|
956
|
-
0x8,
|
|
957
|
-
0x1f,
|
|
958
|
-
0x12,
|
|
959
|
-
0x2,
|
|
960
|
-
0x17,
|
|
961
|
-
0x0,
|
|
962
|
-
0x20,
|
|
963
|
-
0x10,
|
|
964
|
-
0x0,
|
|
965
|
-
0x8,
|
|
966
|
-
0x36,
|
|
967
|
-
0x0,
|
|
968
|
-
0x7,
|
|
969
|
-
0x36,
|
|
970
|
-
0x0,
|
|
971
|
-
0x6,
|
|
972
|
-
0x16,
|
|
973
|
-
0x4,
|
|
974
|
-
0x67,
|
|
975
|
-
0x36,
|
|
976
|
-
0x0,
|
|
977
|
-
0x8,
|
|
978
|
-
0x17,
|
|
979
|
-
0xfc0000,
|
|
980
|
-
0x32,
|
|
981
|
-
0x17,
|
|
982
|
-
0x12,
|
|
983
|
-
0x33,
|
|
984
|
-
0xc,
|
|
985
|
-
0x1,
|
|
986
|
-
0x31,
|
|
987
|
-
0x22,
|
|
988
|
-
0x0,
|
|
989
|
-
0x7,
|
|
990
|
-
0x48,
|
|
991
|
-
0x2b,
|
|
992
|
-
0x36,
|
|
993
|
-
0x0,
|
|
994
|
-
0x7,
|
|
995
|
-
0x36,
|
|
996
|
-
0x0,
|
|
997
|
-
0x6,
|
|
998
|
-
0x16,
|
|
999
|
-
0x4,
|
|
1000
|
-
0x67,
|
|
1001
|
-
0x36,
|
|
1002
|
-
0x0,
|
|
1003
|
-
0x8,
|
|
1004
|
-
0x17,
|
|
1005
|
-
0x3f000,
|
|
1006
|
-
0x32,
|
|
1007
|
-
0x17,
|
|
1008
|
-
0xc,
|
|
1009
|
-
0x33,
|
|
1010
|
-
0xc,
|
|
1011
|
-
0x1,
|
|
1012
|
-
0x31,
|
|
1013
|
-
0x22,
|
|
1014
|
-
0x0,
|
|
1015
|
-
0x7,
|
|
1016
|
-
0x48,
|
|
1017
|
-
0x2b,
|
|
1018
|
-
0x36,
|
|
1019
|
-
0x0,
|
|
1020
|
-
0x7,
|
|
1021
|
-
0x36,
|
|
1022
|
-
0x0,
|
|
1023
|
-
0x2,
|
|
1024
|
-
0x4,
|
|
1025
|
-
0x19,
|
|
1026
|
-
0x36,
|
|
1027
|
-
0x0,
|
|
1028
|
-
0x9,
|
|
1029
|
-
0x13,
|
|
1030
|
-
0xe,
|
|
1031
|
-
0x13,
|
|
1032
|
-
0x36,
|
|
1033
|
-
0x0,
|
|
1034
|
-
0x6,
|
|
1035
|
-
0x16,
|
|
1036
|
-
0x4,
|
|
1037
|
-
0x67,
|
|
1038
|
-
0x36,
|
|
1039
|
-
0x0,
|
|
1040
|
-
0x8,
|
|
1041
|
-
0x17,
|
|
1042
|
-
0xfc0,
|
|
1043
|
-
0x32,
|
|
1044
|
-
0x17,
|
|
1045
|
-
0x6,
|
|
1046
|
-
0x33,
|
|
1047
|
-
0xc,
|
|
1048
|
-
0x1,
|
|
1049
|
-
0x12,
|
|
1050
|
-
0x3,
|
|
1051
|
-
0x36,
|
|
1052
|
-
0x0,
|
|
1053
|
-
0x4,
|
|
1054
|
-
0x31,
|
|
1055
|
-
0x22,
|
|
1056
|
-
0x0,
|
|
1057
|
-
0x7,
|
|
1058
|
-
0x48,
|
|
1059
|
-
0x2b,
|
|
1060
|
-
0x36,
|
|
1061
|
-
0x0,
|
|
1062
|
-
0x7,
|
|
1063
|
-
0x36,
|
|
1064
|
-
0x0,
|
|
1065
|
-
0x4,
|
|
1066
|
-
0x31,
|
|
1067
|
-
0x22,
|
|
1068
|
-
0x0,
|
|
1069
|
-
0x7,
|
|
1070
|
-
0x48,
|
|
1071
|
-
0x2b,
|
|
1072
|
-
0x36,
|
|
1073
|
-
0x0,
|
|
1074
|
-
0x7,
|
|
1075
|
-
0x41
|
|
1076
|
-
];
|
|
1077
|
-
for(let _0x2b8eea = 0x0; _0x2b8eea < _0x19ca6d['length']; _0x2b8eea += 0x3){
|
|
1078
|
-
const _0x3fca04 = _0x19ca6d[_0x5d8d72(0x96)](_0x2b8eea), _0xb85a46 = _0x19ca6d[_0x5d8d72(0x96)](_0x2b8eea + 0x1), _0x4e702d = _0x19ca6d[_0x5d8d72(0x96)](_0x2b8eea + 0x2), _0x4382e1 = _0x3fca04 << _0x251d62[0x5e] | _0xb85a46 << _0x251d62[0x70] | _0x4e702d, _0x225aa0 = (_0x4382e1 & _0x251d62[0x93]) >> _0x251d62[0x96];
|
|
1079
|
-
_0x4f0a28 += _0x225e7d[_0x5d8d72(0xa7)](_0x225aa0);
|
|
1080
|
-
const _0x5607b9 = (_0x4382e1 & _0x251d62[0xad]) >> _0x251d62[0xb0];
|
|
1081
|
-
_0x4f0a28 += Number[_0x5d8d72(0xa1)](_0x3fca04) ? '=' : _0x225e7d[_0x5d8d72(0xa7)](_0x5607b9);
|
|
1082
|
-
const _0x3fb7b7 = (_0x4382e1 & _0x251d62[0xc7]) >> _0x251d62[0xca];
|
|
1083
|
-
_0x4f0a28 += Number[_0x5d8d72(0xa1)](_0xb85a46) ? '=' : _0x225e7d[_0x5d8d72(0xa7)](_0x3fb7b7);
|
|
1084
|
-
const _0x425784 = _0x4382e1 & _0x251d62[0xe1];
|
|
1085
|
-
_0x4f0a28 += Number[_0x5d8d72(0xa1)](_0x4e702d) ? '=' : _0x225e7d[_0x5d8d72(0xa7)](_0x425784);
|
|
1086
|
-
}
|
|
1087
|
-
return _0x4f0a28;
|
|
1088
|
-
}
|
|
1089
|
-
function GenAB(_0x315138, _0x1c32b3) {
|
|
1090
|
-
const _0x206982 = a0_0x45db08, _0x56536b = _0x206982(0xaf);
|
|
1091
|
-
return Data2A_B(Base2Data(EnvData2CharCode(_0x315138, _0x1c32b3, _0x56536b)));
|
|
1092
|
-
}
|
|
1093
|
-
module[a0_0x45db08(0xae)] = GenAB;
|
|
1094
|
-
}
|
|
1095
|
-
};
|
|
1096
|
-
var __webpack_module_cache__ = {};
|
|
1097
|
-
function __webpack_require__(moduleId) {
|
|
1098
|
-
var cachedModule = __webpack_module_cache__[moduleId];
|
|
1099
|
-
if (void 0 !== cachedModule) return cachedModule.exports;
|
|
1100
|
-
var module = __webpack_module_cache__[moduleId] = {
|
|
1101
|
-
id: moduleId,
|
|
1102
|
-
loaded: false,
|
|
1103
|
-
exports: {}
|
|
1104
|
-
};
|
|
1105
|
-
__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
1106
|
-
module.loaded = true;
|
|
1107
|
-
return module.exports;
|
|
1108
|
-
}
|
|
1109
|
-
(()=>{
|
|
1110
|
-
__webpack_require__.nmd = function(module) {
|
|
1111
|
-
module.paths = [];
|
|
1112
|
-
if (!module.children) module.children = [];
|
|
1113
|
-
return module;
|
|
1114
|
-
};
|
|
1115
|
-
})();
|
|
1116
12
|
class Http {
|
|
1117
13
|
static handleApiError(error) {
|
|
1118
14
|
if (error && "object" == typeof error && "code" in error && "message" in error) return error;
|
|
@@ -1213,27 +109,6 @@ const extractImgTag = (html)=>{
|
|
|
1213
109
|
parser.end();
|
|
1214
110
|
return srcList;
|
|
1215
111
|
};
|
|
1216
|
-
class TimeFormatter {
|
|
1217
|
-
static format(timestamp, formatStr = 'yyyy-MM-dd hh:mm') {
|
|
1218
|
-
if ('number' == typeof timestamp && 10 === timestamp.toString().length) timestamp *= 1000;
|
|
1219
|
-
const date = new Date(timestamp);
|
|
1220
|
-
const map = {
|
|
1221
|
-
yyyy: String(date.getFullYear()),
|
|
1222
|
-
yy: String(date.getFullYear()).slice(-2),
|
|
1223
|
-
MM: String(date.getMonth() + 1).padStart(2, '0'),
|
|
1224
|
-
dd: String(date.getDate()).padStart(2, '0'),
|
|
1225
|
-
hh: String(date.getHours()).padStart(2, '0'),
|
|
1226
|
-
mm: String(date.getMinutes()).padStart(2, '0'),
|
|
1227
|
-
ss: String(date.getSeconds()).padStart(2, '0'),
|
|
1228
|
-
M: String(date.getMonth() + 1),
|
|
1229
|
-
d: String(date.getDate()),
|
|
1230
|
-
h: String(date.getHours()),
|
|
1231
|
-
m: String(date.getMinutes()),
|
|
1232
|
-
s: String(date.getSeconds())
|
|
1233
|
-
};
|
|
1234
|
-
return formatStr.replace(/yyyy|yy|MM|dd|hh|mm|ss|M|d|h|m|s/g, (key)=>map[key]);
|
|
1235
|
-
}
|
|
1236
|
-
}
|
|
1237
112
|
const replaceImgSrc = (html, callback)=>{
|
|
1238
113
|
let lastedHtml = html;
|
|
1239
114
|
const isImageTag = (node)=>"tag" === node.type && "img" === node.name;
|
|
@@ -1475,15 +350,13 @@ const mockAction = async (task, params)=>{
|
|
|
1475
350
|
is_checked: 1
|
|
1476
351
|
}
|
|
1477
352
|
] : [],
|
|
1478
|
-
...
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
353
|
+
...isAi ? [
|
|
354
|
+
{
|
|
355
|
+
id: "aigc_bjh_status",
|
|
356
|
+
is_checked: 1
|
|
357
|
+
}
|
|
358
|
+
] : []
|
|
1482
359
|
];
|
|
1483
|
-
if (isAi && !activity_list.some((item)=>'aigc_bjh_status' in item)) activity_list.push({
|
|
1484
|
-
id: 'aigc_bjh_status',
|
|
1485
|
-
is_checked: 1
|
|
1486
|
-
});
|
|
1487
360
|
const publishData = {
|
|
1488
361
|
title: params.settingInfo.baijiahaoTitle,
|
|
1489
362
|
content,
|
|
@@ -1499,10 +372,8 @@ const mockAction = async (task, params)=>{
|
|
|
1499
372
|
usingImgFilter: "false",
|
|
1500
373
|
source: "upload",
|
|
1501
374
|
cover_source: "upload",
|
|
1502
|
-
event2news: params.settingInfo?.baijiahaoEvent2News ? 2 : 0,
|
|
1503
375
|
activity_list
|
|
1504
376
|
};
|
|
1505
|
-
params.settingInfo.timer && (publishData['timer_time'] = params.settingInfo.timer);
|
|
1506
377
|
const isDraft = "draft" === params.saveType;
|
|
1507
378
|
const saveUrl = isDraft ? "https://baijiahao.baidu.com/pcui/article/save?callback=bjhdraft" : "https://baijiahao.baidu.com/pcui/article/publish?callback=bjhpublish";
|
|
1508
379
|
const res = await http.api({
|
|
@@ -1607,17 +478,12 @@ const rpaAction = async (task, params)=>{
|
|
|
1607
478
|
await abstractFormItem.click();
|
|
1608
479
|
await abstractFormItem.fill(params.settingInfo.baijiahaoAbstract);
|
|
1609
480
|
const isAi = params.settingInfo.baijiahaoIsAi.includes("isAi");
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
const _settingFormItem = settingFormItem.locator("label.cheetah-checkbox-wrapper").locator(`span.${item.confName}`);
|
|
1616
|
-
if (await _settingFormItem.isChecked() !== item.isChecked) await _settingFormItem.click();
|
|
1617
|
-
await page.waitForTimeout(200);
|
|
481
|
+
if (isAi) {
|
|
482
|
+
const settingFormItem = page.locator(".bjh-edit-wrap-set .cheetah-form-item").nth(5);
|
|
483
|
+
await settingFormItem.locator("label.cheetah-checkbox-wrapper").filter({
|
|
484
|
+
hasText: "AI创作声明"
|
|
485
|
+
}).click();
|
|
1618
486
|
}
|
|
1619
|
-
const enent2NewsBtn = page.locator("input#event2news");
|
|
1620
|
-
if (await enent2NewsBtn.isVisible() && params.settingInfo.baijiahaoEvent2News) await enent2NewsBtn.click();
|
|
1621
487
|
if (params.settingInfo.baijiahaoActivity.length > 0 && params.settingInfo.baijiahaoSelectActivityCache.length > 0) {
|
|
1622
488
|
const activity = params.settingInfo.baijiahaoActivity.filter((it)=>params.settingInfo.baijiahaoSelectActivityCache.includes(it.id));
|
|
1623
489
|
if (activity.length > 0) {
|
|
@@ -1629,16 +495,13 @@ const rpaAction = async (task, params)=>{
|
|
|
1629
495
|
if (await findActivity.count() > 0) findActivity.first().locator("..").click();
|
|
1630
496
|
}
|
|
1631
497
|
}
|
|
1632
|
-
const
|
|
498
|
+
const articleId = await new Promise((resolve)=>{
|
|
1633
499
|
const handleResponse = async (response)=>{
|
|
1634
500
|
const url = response.url();
|
|
1635
501
|
if (url.includes("/pcui/article/save") || url.includes("/pcui/article/publish")) {
|
|
1636
502
|
const jsonResponse = await response.json();
|
|
1637
503
|
page.off("response", handleResponse);
|
|
1638
|
-
resolve(
|
|
1639
|
-
articleId: jsonResponse?.ret?.article_id,
|
|
1640
|
-
message: jsonResponse?.errmsg
|
|
1641
|
-
});
|
|
504
|
+
resolve(jsonResponse?.ret?.article_id);
|
|
1642
505
|
}
|
|
1643
506
|
};
|
|
1644
507
|
page.on("response", handleResponse);
|
|
@@ -1646,75 +509,12 @@ const rpaAction = async (task, params)=>{
|
|
|
1646
509
|
if ("draft" === params.saveType) operatorContainer.locator(".op-btn-outter-content").filter({
|
|
1647
510
|
hasText: "存草稿"
|
|
1648
511
|
}).locator("button").click();
|
|
1649
|
-
else
|
|
1650
|
-
|
|
1651
|
-
hasText: "定时发布"
|
|
1652
|
-
}).locator("button").click();
|
|
1653
|
-
await page.locator(".timepublish-wrap-select .select-wrap", {
|
|
1654
|
-
hasText: "日"
|
|
1655
|
-
}).click();
|
|
1656
|
-
await page.locator('#select-date_list + * .cheetah-select-item-option', {
|
|
1657
|
-
hasText: TimeFormatter.format(params.settingInfo.timer, "M月dd日")
|
|
1658
|
-
}).click();
|
|
1659
|
-
await page.waitForTimeout(200);
|
|
1660
|
-
await page.locator(".timepublish-wrap-select .select-wrap", {
|
|
1661
|
-
hasText: "点"
|
|
1662
|
-
}).click();
|
|
1663
|
-
await page.locator('#select-hour_list +div.rc-virtual-list').hover();
|
|
1664
|
-
const scrollHourInfo = await page.evaluate(()=>{
|
|
1665
|
-
const hourInner = document.querySelector('#select-hour_list + * .rc-virtual-list-holder-inner');
|
|
1666
|
-
const hourElementHeight = hourInner?.children[0].clientHeight || 36;
|
|
1667
|
-
const hourMapsElem = Array.from(document.querySelectorAll('#select-hour_list + * .cheetah-select-item-option .cheetah-select-item-option-content'));
|
|
1668
|
-
const hourMap = hourMapsElem.map((item)=>item.textContent?.trim());
|
|
1669
|
-
return {
|
|
1670
|
-
elementHeight: hourElementHeight,
|
|
1671
|
-
elementItem: hourMap
|
|
1672
|
-
};
|
|
1673
|
-
});
|
|
1674
|
-
const fistHourElem = scrollHourInfo.elementItem[0];
|
|
1675
|
-
let fistHourElemH = Number(fistHourElem?.split("点")[0]);
|
|
1676
|
-
const lastHourElem = scrollHourInfo.elementItem[scrollHourInfo.elementItem.length - 1];
|
|
1677
|
-
let lastHourElemH = Number(lastHourElem?.split("点")[0]);
|
|
1678
|
-
let targetTimeH = Number(TimeFormatter.format(params.settingInfo.timer, 'h'));
|
|
1679
|
-
await page.mouse.wheel(0, targetTimeH > lastHourElemH ? (targetTimeH - lastHourElemH) * scrollHourInfo.elementHeight : targetTimeH < fistHourElemH ? -(fistHourElemH - targetTimeH) * scrollHourInfo.elementHeight : 0);
|
|
1680
|
-
await page.locator("#select-hour_list + * .cheetah-select-item-option ", {
|
|
1681
|
-
hasText: targetTimeH + "点"
|
|
1682
|
-
}).click();
|
|
1683
|
-
await page.waitForTimeout(200);
|
|
1684
|
-
await page.locator(".timepublish-wrap-select .select-wrap", {
|
|
1685
|
-
hasText: "分"
|
|
1686
|
-
}).click();
|
|
1687
|
-
await page.locator('#select-minute_list +div.rc-virtual-list').hover();
|
|
1688
|
-
const scrollMinuteInfo = await page.evaluate(()=>{
|
|
1689
|
-
const hourInner = document.querySelector('#select-minute_list + * .rc-virtual-list-holder-inner');
|
|
1690
|
-
const hourElementHeight = hourInner?.children[0].clientHeight || 36;
|
|
1691
|
-
const hourMapsElem = Array.from(document.querySelectorAll('#select-minute_list + * .cheetah-select-item-option .cheetah-select-item-option-content'));
|
|
1692
|
-
const hourMap = hourMapsElem.map((item)=>item.textContent?.trim());
|
|
1693
|
-
return {
|
|
1694
|
-
elementHeight: hourElementHeight,
|
|
1695
|
-
elementItem: hourMap
|
|
1696
|
-
};
|
|
1697
|
-
});
|
|
1698
|
-
const fistMinuteElem = scrollMinuteInfo.elementItem[0];
|
|
1699
|
-
let fistMinuteElemH = Number(fistMinuteElem?.split("分")[0]);
|
|
1700
|
-
const lastMinuteElem = scrollMinuteInfo.elementItem[scrollMinuteInfo.elementItem.length - 1];
|
|
1701
|
-
let lastMinuteElemH = Number(lastMinuteElem?.split("分")[0]);
|
|
1702
|
-
let targetTimeM = Number(TimeFormatter.format(params.settingInfo.timer, 'm'));
|
|
1703
|
-
await page.mouse.wheel(0, targetTimeM > lastMinuteElemH ? (targetTimeM - lastMinuteElemH) * scrollMinuteInfo.elementHeight : targetTimeM < fistMinuteElemH ? -(fistMinuteElemH - targetTimeM) * scrollMinuteInfo.elementHeight : 0);
|
|
1704
|
-
await page.locator("#select-minute_list + * .cheetah-select-item-option ", {
|
|
1705
|
-
hasText: targetTimeM + "分"
|
|
1706
|
-
}).click();
|
|
1707
|
-
await page.waitForTimeout(200);
|
|
1708
|
-
await page.locator(".cheetah-modal-confirm-btns button").filter({
|
|
1709
|
-
hasText: "定时发布"
|
|
1710
|
-
}).click();
|
|
1711
|
-
} else operatorContainer.locator(".op-btn-outter-content").filter({
|
|
1712
|
-
hasText: /^发布/
|
|
512
|
+
else operatorContainer.locator(".op-btn-outter-content").filter({
|
|
513
|
+
hasText: "发布"
|
|
1713
514
|
}).locator("button").click();
|
|
1714
515
|
});
|
|
1715
|
-
await page.waitForTimeout(200000);
|
|
1716
516
|
await page.close();
|
|
1717
|
-
return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)(articleId
|
|
517
|
+
return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)(articleId);
|
|
1718
518
|
};
|
|
1719
519
|
const baijiahaoPublish = async (task, params)=>{
|
|
1720
520
|
if ("rpa" === params.actionType) return rpaAction(task, params);
|
|
@@ -1799,28 +599,6 @@ const getToutiaoConfig = async (_task, params)=>{
|
|
|
1799
599
|
userRights
|
|
1800
600
|
});
|
|
1801
601
|
};
|
|
1802
|
-
const getBaijiahaoConfig = async (_task, params)=>{
|
|
1803
|
-
const cookies = params.cookies ?? [];
|
|
1804
|
-
const http = new Http({
|
|
1805
|
-
headers: {
|
|
1806
|
-
cookie: cookies.map((it)=>`${it.name}=${it.value}`).join(";"),
|
|
1807
|
-
token: params.token
|
|
1808
|
-
}
|
|
1809
|
-
});
|
|
1810
|
-
const res = await http.api({
|
|
1811
|
-
method: "get",
|
|
1812
|
-
url: "https://baijiahao.baidu.com/pcui/article/edit",
|
|
1813
|
-
params: {
|
|
1814
|
-
type: "news"
|
|
1815
|
-
}
|
|
1816
|
-
});
|
|
1817
|
-
return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)(res?.data?.article.activity_list.map((_item)=>({
|
|
1818
|
-
id: _item.id,
|
|
1819
|
-
name: _item.name,
|
|
1820
|
-
detail: _item.detail,
|
|
1821
|
-
is_enable: _item.is_enable
|
|
1822
|
-
})) ?? [], "获取头条发布配置项成功");
|
|
1823
|
-
};
|
|
1824
602
|
const searchToutiaoTopicList = async (_task, params)=>{
|
|
1825
603
|
const http = new Http({
|
|
1826
604
|
headers: {
|
|
@@ -1843,72 +621,6 @@ const searchToutiaoTopicList = async (_task, params)=>{
|
|
|
1843
621
|
return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)([]);
|
|
1844
622
|
}
|
|
1845
623
|
};
|
|
1846
|
-
const searchToutiaoLocation = async (_task, params)=>{
|
|
1847
|
-
const http = new Http({
|
|
1848
|
-
headers: {
|
|
1849
|
-
cookie: params.cookies.map((it)=>`${it.name}=${it.value}`).join(";"),
|
|
1850
|
-
referer: "https://mp.toutiao.com/profile_v4/graphic/publish",
|
|
1851
|
-
biz: 1231
|
|
1852
|
-
}
|
|
1853
|
-
});
|
|
1854
|
-
try {
|
|
1855
|
-
const res = await http.api({
|
|
1856
|
-
method: "post",
|
|
1857
|
-
url: "https://mp.toutiao.com/poi/api/searchplace",
|
|
1858
|
-
data: {
|
|
1859
|
-
appid: 1231,
|
|
1860
|
-
device: 2,
|
|
1861
|
-
keywords: params.placeName,
|
|
1862
|
-
language: "zh-CN",
|
|
1863
|
-
location: "-1,-1",
|
|
1864
|
-
offset: 20,
|
|
1865
|
-
page: 1,
|
|
1866
|
-
region: "CN",
|
|
1867
|
-
scenario: "TIPS",
|
|
1868
|
-
timestamp: Math.floor(Date.now() / 1000)
|
|
1869
|
-
}
|
|
1870
|
-
});
|
|
1871
|
-
if (200 === res.code) return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)(res.data.poi.map((item)=>({
|
|
1872
|
-
position: item.name,
|
|
1873
|
-
city: item.city,
|
|
1874
|
-
longitude: item.longitude,
|
|
1875
|
-
latitude: item.latitude,
|
|
1876
|
-
type_code: item.type_code,
|
|
1877
|
-
poi_id: item.id
|
|
1878
|
-
})));
|
|
1879
|
-
return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)([]);
|
|
1880
|
-
} catch (error) {
|
|
1881
|
-
return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)([]);
|
|
1882
|
-
}
|
|
1883
|
-
};
|
|
1884
|
-
const searchToutiaoUserInfo = async (_task, params)=>{
|
|
1885
|
-
const http = new Http({
|
|
1886
|
-
headers: {
|
|
1887
|
-
cookie: params.cookies.map((it)=>`${it.name}=${it.value}`).join(";"),
|
|
1888
|
-
referer: "https://mp.toutiao.com/profile_v4/graphic/publish"
|
|
1889
|
-
}
|
|
1890
|
-
});
|
|
1891
|
-
try {
|
|
1892
|
-
const res = await http.api({
|
|
1893
|
-
method: "get",
|
|
1894
|
-
url: "https://mp.toutiao.com/ugc/publish/post/v1/suggest/",
|
|
1895
|
-
params: {
|
|
1896
|
-
words: params.UserName,
|
|
1897
|
-
language: "zh",
|
|
1898
|
-
app_name: "toutiao_mp"
|
|
1899
|
-
}
|
|
1900
|
-
});
|
|
1901
|
-
if (0 === res.err_no) return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)(res.data.suggest.map((item)=>({
|
|
1902
|
-
user_id: item.user.info.user_id,
|
|
1903
|
-
name: item.user.info.name,
|
|
1904
|
-
avatar_url: item.user.info.avatar_url,
|
|
1905
|
-
followers_count: item.user.relation_count.followers_count
|
|
1906
|
-
})), '搜索成功');
|
|
1907
|
-
return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)([]);
|
|
1908
|
-
} catch (error) {
|
|
1909
|
-
return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)([]);
|
|
1910
|
-
}
|
|
1911
|
-
};
|
|
1912
624
|
const searchXiaohongshuLocation = async (_task, params)=>{
|
|
1913
625
|
const http = new Http({
|
|
1914
626
|
headers: {
|
|
@@ -1966,7 +678,6 @@ const searchXiaohongshuTopicList = async (_task, params)=>{
|
|
|
1966
678
|
return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)([]);
|
|
1967
679
|
}
|
|
1968
680
|
};
|
|
1969
|
-
const GenAB = __webpack_require__("./src/utils/ttABEncrypt.js");
|
|
1970
681
|
const mock_errnoMap = {
|
|
1971
682
|
20004020: "图片上传异常,请重新绑定账号后同步。",
|
|
1972
683
|
7115: "正文图片和封面图片推荐jpg、png格式。",
|
|
@@ -1983,11 +694,6 @@ const mock_errnoMap = {
|
|
|
1983
694
|
2005: "账号无【申明原创】权限,请关闭申明后重试。",
|
|
1984
695
|
100004: "用户未登录或登陆已过期,请重新登陆后重试。"
|
|
1985
696
|
};
|
|
1986
|
-
const mock_generatorFormData = (data)=>Object.entries(data).map(([key, value])=>{
|
|
1987
|
-
const encodedKey = encodeURIComponent(key);
|
|
1988
|
-
const encodedValue = encodeURIComponent(String(value));
|
|
1989
|
-
return `${encodedKey}=${encodedValue}`;
|
|
1990
|
-
}).join('&');
|
|
1991
697
|
const get3101DetailError = (errorList, message, saveType)=>{
|
|
1992
698
|
let error = "";
|
|
1993
699
|
if (message?.includes("当日发文")) error = errorList[0];
|
|
@@ -1996,7 +702,7 @@ const get3101DetailError = (errorList, message, saveType)=>{
|
|
|
1996
702
|
return error || ("draft" === saveType ? "文章同步异常,请稍后重试。" : "文章发布异常,请稍后重试。");
|
|
1997
703
|
};
|
|
1998
704
|
const mock_mockAction = async (task, params)=>{
|
|
1999
|
-
const { toutiaoSingleCover, toutiaoMultCover, toutiaoCoverType, toutiaoOriginal
|
|
705
|
+
const { toutiaoSingleCover, toutiaoMultCover, toutiaoCoverType, toutiaoOriginal } = params.settingInfo;
|
|
2000
706
|
const tmpCachePath = task.getTmpPath();
|
|
2001
707
|
const http = new Http({
|
|
2002
708
|
headers: {
|
|
@@ -2052,27 +758,23 @@ const mock_mockAction = async (task, params)=>{
|
|
|
2052
758
|
toutiaoSingleCover
|
|
2053
759
|
] : "multiple" === toutiaoCoverType ? toutiaoMultCover : [];
|
|
2054
760
|
const coverRes = await uploadImages(coverUrl);
|
|
761
|
+
const isSingleTitle = "single" === params.settingInfo.toutiaoTitleType;
|
|
2055
762
|
const location = params.settingInfo.toutiaoLocation;
|
|
2056
763
|
const topics = params.settingInfo.toutiaoTopic || [];
|
|
764
|
+
const multiTitleData = params.settingInfo.subTitles.map((title)=>({
|
|
765
|
+
id: "0",
|
|
766
|
+
visibility_level: 0,
|
|
767
|
+
source: "author",
|
|
768
|
+
old_source: "author",
|
|
769
|
+
text: title,
|
|
770
|
+
version: "author",
|
|
771
|
+
ai_title: ""
|
|
772
|
+
}));
|
|
2057
773
|
const topicContent = topics.map((topic)=>`<p><a class="tteditor-forum" data-name="${topic.word}" data-id="${topic.id}" data-concern-id="${topic.id}">#${topic.word}#</a ></p >`).join("");
|
|
2058
|
-
let sourceData = {
|
|
2059
|
-
source_type: toutiaoClaim ? toutiaoClaim.type : 5
|
|
2060
|
-
};
|
|
2061
|
-
if (toutiaoClaim && 1 === toutiaoClaim.type) {
|
|
2062
|
-
if (!toutiaoClaim?.source_author_uid) return {
|
|
2063
|
-
code: 500,
|
|
2064
|
-
message: "请填写作者ID",
|
|
2065
|
-
data: ""
|
|
2066
|
-
};
|
|
2067
|
-
sourceData = {
|
|
2068
|
-
...sourceData,
|
|
2069
|
-
source_author_uid: toutiaoClaim.source_author_uid,
|
|
2070
|
-
time_format: toutiaoClaim.time_format,
|
|
2071
|
-
position: toutiaoClaim.position
|
|
2072
|
-
};
|
|
2073
|
-
}
|
|
2074
774
|
const extraData = {
|
|
2075
775
|
content_word_cnt: params.settingInfo.cntWord,
|
|
776
|
+
is_multi_title: isSingleTitle ? 0 : 1,
|
|
777
|
+
sub_titles: isSingleTitle ? [] : multiTitleData,
|
|
2076
778
|
gd_ext: {
|
|
2077
779
|
entrance: "",
|
|
2078
780
|
from_page: "publisher_mp",
|
|
@@ -2081,7 +783,12 @@ const mock_mockAction = async (task, params)=>{
|
|
|
2081
783
|
is_message: 0
|
|
2082
784
|
},
|
|
2083
785
|
tuwen_wtt_trans_flag: "0",
|
|
2084
|
-
info_source:
|
|
786
|
+
info_source: {
|
|
787
|
+
source_type: 5,
|
|
788
|
+
source_link: "",
|
|
789
|
+
time_format: "",
|
|
790
|
+
position: {}
|
|
791
|
+
},
|
|
2085
792
|
...location ? {
|
|
2086
793
|
city: location.label,
|
|
2087
794
|
city_code: location.value
|
|
@@ -2106,8 +813,8 @@ const mock_mockAction = async (task, params)=>{
|
|
|
2106
813
|
trends_writing_tag: 0,
|
|
2107
814
|
is_refute_rumor: 0,
|
|
2108
815
|
save: "publish" === params.saveType ? 1 : 0,
|
|
2109
|
-
timer_status:
|
|
2110
|
-
timer_time:
|
|
816
|
+
timer_status: 0,
|
|
817
|
+
timer_time: "",
|
|
2111
818
|
title: params.title,
|
|
2112
819
|
content: content + topicContent,
|
|
2113
820
|
extra: JSON.stringify(extraData),
|
|
@@ -2128,31 +835,10 @@ const mock_mockAction = async (task, params)=>{
|
|
|
2128
835
|
}
|
|
2129
836
|
}))),
|
|
2130
837
|
article_ad_type: getAddTypeValue(params.settingInfo.toutiaoAd),
|
|
2131
|
-
|
|
838
|
+
claim_origin: toutiaoOriginal.includes("original") ? 1 : 0,
|
|
839
|
+
claim_exclusive: toutiaoOriginal.includes("exclusive") ? 1 : 0
|
|
2132
840
|
};
|
|
2133
|
-
const
|
|
2134
|
-
let publishOption = {};
|
|
2135
|
-
if (msToken) {
|
|
2136
|
-
const postHeaders = mock_generatorFormData({
|
|
2137
|
-
source: "mp",
|
|
2138
|
-
type: "article",
|
|
2139
|
-
aid: 1231,
|
|
2140
|
-
mp_publish_ab_val: 0,
|
|
2141
|
-
msToken: msToken
|
|
2142
|
-
});
|
|
2143
|
-
const postData = mock_generatorFormData(publishData);
|
|
2144
|
-
let a_bogus = GenAB(postHeaders, postData);
|
|
2145
|
-
publishOption = {
|
|
2146
|
-
method: "post",
|
|
2147
|
-
url: `https://mp.toutiao.com/mp/agw/article/publish?${postHeaders}&a_bogus=${a_bogus}`,
|
|
2148
|
-
data: postData,
|
|
2149
|
-
headers: {
|
|
2150
|
-
"content-type": "application/x-www-form-urlencoded",
|
|
2151
|
-
"user-agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36"
|
|
2152
|
-
},
|
|
2153
|
-
defaultErrorMsg: "draft" === params.saveType ? "文章同步异常,请稍后重试。" : "文章发布异常,请稍后重试。"
|
|
2154
|
-
};
|
|
2155
|
-
} else publishOption = {
|
|
841
|
+
const publishResult = await http.api({
|
|
2156
842
|
method: "post",
|
|
2157
843
|
url: "https://mp.toutiao.com/mp/agw/article/publish?source=mp&type=article&aid=1",
|
|
2158
844
|
data: publishData,
|
|
@@ -2160,11 +846,9 @@ const mock_mockAction = async (task, params)=>{
|
|
|
2160
846
|
"content-type": "application/x-www-form-urlencoded"
|
|
2161
847
|
},
|
|
2162
848
|
defaultErrorMsg: "draft" === params.saveType ? "文章同步异常,请稍后重试。" : "文章发布异常,请稍后重试。"
|
|
2163
|
-
};
|
|
2164
|
-
const publishResult = await http.api(publishOption);
|
|
849
|
+
});
|
|
2165
850
|
return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)(publishResult.data.pgc_id);
|
|
2166
851
|
};
|
|
2167
|
-
const rpa_GenAB = __webpack_require__("./src/utils/ttABEncrypt.js");
|
|
2168
852
|
const rpa_rpaAction = async (task, params)=>{
|
|
2169
853
|
const tmpCachePath = task.getTmpPath();
|
|
2170
854
|
const commonCookies = {
|
|
@@ -2199,30 +883,9 @@ const rpa_rpaAction = async (task, params)=>{
|
|
|
2199
883
|
await page.route('**', async (route, request)=>{
|
|
2200
884
|
const url = new URL(request.url());
|
|
2201
885
|
if (interceptUrls.some((pattern)=>url.pathname.includes(pattern))) {
|
|
2202
|
-
|
|
2203
|
-
...request.headers(),
|
|
2204
|
-
"user-agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36"
|
|
2205
|
-
};
|
|
2206
|
-
const generatorFormData = (data)=>Object.entries(data).map(([key, value])=>{
|
|
2207
|
-
const encodedKey = encodeURIComponent(key);
|
|
2208
|
-
const encodedValue = encodeURIComponent(String(value));
|
|
2209
|
-
return `${encodedKey}=${encodedValue}`;
|
|
2210
|
-
}).join('&');
|
|
2211
|
-
const postHeaders = generatorFormData({
|
|
2212
|
-
source: "mp",
|
|
2213
|
-
type: "article",
|
|
2214
|
-
aid: 1231,
|
|
2215
|
-
mp_publish_ab_val: 0,
|
|
2216
|
-
msToken: url.searchParams.get('msToken')
|
|
2217
|
-
});
|
|
2218
|
-
const postData = request.postData() || "";
|
|
2219
|
-
let a_bogus = rpa_GenAB(postHeaders, postData);
|
|
2220
|
-
url.searchParams.set('aid', "1231");
|
|
2221
|
-
url.searchParams.set('mp_publish_ab_val', "0");
|
|
2222
|
-
url.searchParams.set('a_bogus', a_bogus);
|
|
886
|
+
url.searchParams.set('aid', '1');
|
|
2223
887
|
await route.continue({
|
|
2224
|
-
url: url.toString()
|
|
2225
|
-
headers: headers
|
|
888
|
+
url: url.toString()
|
|
2226
889
|
});
|
|
2227
890
|
} else await route.continue();
|
|
2228
891
|
});
|
|
@@ -2297,40 +960,13 @@ const rpa_rpaAction = async (task, params)=>{
|
|
|
2297
960
|
}).locator("xpath=..");
|
|
2298
961
|
const isAdOptionVisible = await adContainer.isVisible();
|
|
2299
962
|
if (isAdOptionVisible) await adContainer.locator(`label.byte-radio:has(input[value="${getAddTypeValue(params.settingInfo.toutiaoAd)}"])`).click();
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
let claim = params.settingInfo.toutiaoClaim ? params.settingInfo.toutiaoClaim.type : 5;
|
|
2306
|
-
switch(claim){
|
|
2307
|
-
case 3:
|
|
2308
|
-
await page.locator(".source-wrap .byte-checkbox", {
|
|
2309
|
-
hasText: "引用AI"
|
|
2310
|
-
}).locator(".byte-checkbox-mask").check();
|
|
2311
|
-
break;
|
|
2312
|
-
case 4:
|
|
2313
|
-
await page.locator(".source-wrap .byte-checkbox", {
|
|
2314
|
-
hasText: "取材网络"
|
|
2315
|
-
}).locator(".byte-checkbox-mask").check();
|
|
2316
|
-
break;
|
|
2317
|
-
case 5:
|
|
2318
|
-
await page.locator(".source-wrap .byte-checkbox", {
|
|
2319
|
-
hasText: "个人观点,仅供参考"
|
|
2320
|
-
}).locator(".byte-checkbox-mask").check();
|
|
2321
|
-
break;
|
|
2322
|
-
case 6:
|
|
2323
|
-
await page.locator(".source-wrap .byte-checkbox", {
|
|
2324
|
-
hasText: "虚构演绎,故事经历"
|
|
2325
|
-
}).locator(".byte-checkbox-mask").check();
|
|
2326
|
-
break;
|
|
2327
|
-
default:
|
|
2328
|
-
await page.locator(".source-wrap .byte-checkbox", {
|
|
2329
|
-
hasText: "个人观点,仅供参考"
|
|
2330
|
-
}).locator(".byte-checkbox-mask").check();
|
|
2331
|
-
break;
|
|
963
|
+
if (params.settingInfo.toutiaoOriginal.includes("exclusive")) {
|
|
964
|
+
const exclusiveContainer = page.locator(".form-container .edit-cell .edit-label").filter({
|
|
965
|
+
hasText: "声明首发"
|
|
966
|
+
}).locator("xpath=..");
|
|
967
|
+
exclusiveContainer.locator(".exclusive .exclusive-checkbox-wraper .byte-checkbox").click();
|
|
2332
968
|
}
|
|
2333
|
-
const articleId = await new Promise(
|
|
969
|
+
const articleId = await new Promise((resolve)=>{
|
|
2334
970
|
const handleResponse = async (response)=>{
|
|
2335
971
|
const url = response.url();
|
|
2336
972
|
if (url.includes("/mp/agw/article/publish")) {
|
|
@@ -2340,32 +976,7 @@ const rpa_rpaAction = async (task, params)=>{
|
|
|
2340
976
|
}
|
|
2341
977
|
};
|
|
2342
978
|
page.on("response", handleResponse);
|
|
2343
|
-
|
|
2344
|
-
await page.locator(".publish-footer button").filter({
|
|
2345
|
-
hasText: "定时发布"
|
|
2346
|
-
}).click();
|
|
2347
|
-
await page.waitForSelector('button.publish-btn:not(.byte-btn-loading) >> nth=1', {
|
|
2348
|
-
state: 'attached'
|
|
2349
|
-
});
|
|
2350
|
-
await page.locator(".byte-modal-content .day-select .byte-select-view-value").click();
|
|
2351
|
-
await page.locator('li.byte-select-option', {
|
|
2352
|
-
hasText: TimeFormatter.format(params.settingInfo.timer, "MM月dd日")
|
|
2353
|
-
}).click();
|
|
2354
|
-
await page.waitForTimeout(200);
|
|
2355
|
-
await page.locator(".byte-modal-content .hour-select .byte-select-view-value").click();
|
|
2356
|
-
await page.locator('li.byte-select-option', {
|
|
2357
|
-
hasText: TimeFormatter.format(params.settingInfo.timer, "h")
|
|
2358
|
-
}).click();
|
|
2359
|
-
await page.waitForTimeout(200);
|
|
2360
|
-
await page.locator(".byte-modal-content .minute-select .byte-select-view-value").click();
|
|
2361
|
-
await page.locator('li.byte-select-option', {
|
|
2362
|
-
hasText: TimeFormatter.format(params.settingInfo.timer, "m")
|
|
2363
|
-
}).click();
|
|
2364
|
-
await page.waitForTimeout(200);
|
|
2365
|
-
await page.locator(".byte-modal-footer button").filter({
|
|
2366
|
-
hasText: "预览并定时发布"
|
|
2367
|
-
}).click();
|
|
2368
|
-
} else await page.locator(".publish-footer button").filter({
|
|
979
|
+
page.locator(".publish-footer button").filter({
|
|
2369
980
|
hasText: "预览并发布"
|
|
2370
981
|
}).click();
|
|
2371
982
|
});
|
|
@@ -2376,17 +987,17 @@ const rpa_rpaAction = async (task, params)=>{
|
|
|
2376
987
|
}
|
|
2377
988
|
if ("publish" === params.saveType) {
|
|
2378
989
|
await page.locator(".publish-footer button").filter({
|
|
2379
|
-
hasText:
|
|
990
|
+
hasText: "确认发布"
|
|
2380
991
|
}).waitFor({
|
|
2381
992
|
state: "visible"
|
|
2382
993
|
});
|
|
2383
994
|
await page.waitForTimeout(200);
|
|
2384
995
|
await page.locator(".publish-footer button").filter({
|
|
2385
|
-
hasText:
|
|
996
|
+
hasText: "确认发布"
|
|
2386
997
|
}).click();
|
|
2387
998
|
}
|
|
2388
999
|
await page.close();
|
|
2389
|
-
return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)(articleId
|
|
1000
|
+
return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)(articleId);
|
|
2390
1001
|
};
|
|
2391
1002
|
const COVER_TYPE = {
|
|
2392
1003
|
no: 1,
|
|
@@ -2399,106 +1010,6 @@ const toutiaoPublish = async (task, params)=>{
|
|
|
2399
1010
|
if ("mockApi" === params.actionType) return mock_mockAction(task, params);
|
|
2400
1011
|
return executeAction(mock_mockAction, rpa_rpaAction)(task, params);
|
|
2401
1012
|
};
|
|
2402
|
-
const TTFansExport = async (_task, params)=>{
|
|
2403
|
-
const http = new Http({
|
|
2404
|
-
headers: {
|
|
2405
|
-
cookie: params.cookies.map((it)=>`${it.name}=${it.value}`).join(";"),
|
|
2406
|
-
referer: "https://mp.toutiao.com/profile_v4/graphic/publish"
|
|
2407
|
-
}
|
|
2408
|
-
});
|
|
2409
|
-
try {
|
|
2410
|
-
const res = await http.api({
|
|
2411
|
-
method: "get",
|
|
2412
|
-
url: "https://mp.toutiao.com/mp/agw/creator_center/user_info?app_id=1231",
|
|
2413
|
-
params: {
|
|
2414
|
-
app_id: 1231
|
|
2415
|
-
}
|
|
2416
|
-
});
|
|
2417
|
-
return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)(0 === res.code ? {
|
|
2418
|
-
fans_count: res.total_fans_count
|
|
2419
|
-
} : {
|
|
2420
|
-
fans_count: null
|
|
2421
|
-
}, "获取粉丝数成功!");
|
|
2422
|
-
} catch (error) {
|
|
2423
|
-
return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)({
|
|
2424
|
-
fans_count: null
|
|
2425
|
-
}, "获取粉丝数失败,请检查登陆有效性!");
|
|
2426
|
-
}
|
|
2427
|
-
};
|
|
2428
|
-
const XhsFansExport = async (_task, params)=>{
|
|
2429
|
-
const http = new Http({
|
|
2430
|
-
headers: {
|
|
2431
|
-
cookie: params.cookies.map((it)=>`${it.name}=${it.value}`).join(";"),
|
|
2432
|
-
referer: "https://creator.xiaohongshu.com/new/home?source=official"
|
|
2433
|
-
}
|
|
2434
|
-
});
|
|
2435
|
-
try {
|
|
2436
|
-
const res = await http.api({
|
|
2437
|
-
method: "get",
|
|
2438
|
-
url: "https://creator.xiaohongshu.com/api/galaxy/creator/home/personal_info"
|
|
2439
|
-
});
|
|
2440
|
-
return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)(0 === res.result ? {
|
|
2441
|
-
fans_count: res.data.fans_count
|
|
2442
|
-
} : {
|
|
2443
|
-
fans_count: null
|
|
2444
|
-
}, "获取粉丝数成功!");
|
|
2445
|
-
} catch (error) {
|
|
2446
|
-
return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)({
|
|
2447
|
-
fans_count: null
|
|
2448
|
-
}, "获取粉丝数失败,请检查登陆有效性!");
|
|
2449
|
-
}
|
|
2450
|
-
};
|
|
2451
|
-
const WxFansExport = async (_task, params)=>{
|
|
2452
|
-
const http = new Http({
|
|
2453
|
-
headers: {
|
|
2454
|
-
cookie: params.cookies.map((it)=>`${it.name}=${it.value}`).join(";")
|
|
2455
|
-
}
|
|
2456
|
-
});
|
|
2457
|
-
try {
|
|
2458
|
-
const htmlStr = await http.api({
|
|
2459
|
-
method: "get",
|
|
2460
|
-
url: "https://mp.weixin.qq.com/cgi-bin/home",
|
|
2461
|
-
params: {
|
|
2462
|
-
t: "home/index",
|
|
2463
|
-
token: params.token,
|
|
2464
|
-
lang: "zh_CN"
|
|
2465
|
-
}
|
|
2466
|
-
});
|
|
2467
|
-
const match = htmlStr.match(/总用户数[\s\S]*?<mp-thousandth>(\d+)<\/mp-thousandth>/);
|
|
2468
|
-
return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)(match ? {
|
|
2469
|
-
fans_count: Number(match[1])
|
|
2470
|
-
} : {
|
|
2471
|
-
fans_count: null
|
|
2472
|
-
}, "获取粉丝数成功!");
|
|
2473
|
-
} catch (error) {
|
|
2474
|
-
return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)({
|
|
2475
|
-
fans_count: null
|
|
2476
|
-
}, "获取粉丝数失败,请检查登陆有效性!");
|
|
2477
|
-
}
|
|
2478
|
-
};
|
|
2479
|
-
const BjhFansExport = async (_task, params)=>{
|
|
2480
|
-
const http = new Http({
|
|
2481
|
-
headers: {
|
|
2482
|
-
cookie: params.cookies.map((it)=>`${it.name}=${it.value}`).join(";"),
|
|
2483
|
-
referer: "https://baijiahao.baidu.com/builder/rc/home"
|
|
2484
|
-
}
|
|
2485
|
-
});
|
|
2486
|
-
try {
|
|
2487
|
-
const res = await http.api({
|
|
2488
|
-
method: "get",
|
|
2489
|
-
url: "https://baijiahao.baidu.com/cms-ui/rights/growth/get_info"
|
|
2490
|
-
});
|
|
2491
|
-
return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)(0 === res.errno ? {
|
|
2492
|
-
fans_count: res.data.total_fans
|
|
2493
|
-
} : {
|
|
2494
|
-
fans_count: null
|
|
2495
|
-
}, "获取粉丝数成功!");
|
|
2496
|
-
} catch (error) {
|
|
2497
|
-
return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)({
|
|
2498
|
-
fans_count: null
|
|
2499
|
-
}, "获取粉丝数失败,请检查登陆有效性!");
|
|
2500
|
-
}
|
|
2501
|
-
};
|
|
2502
1013
|
const weitoutiaoPublish_mock_mockAction = async (task, params)=>{
|
|
2503
1014
|
const tmpCachePath = task.getTmpPath();
|
|
2504
1015
|
const http = new Http({
|
|
@@ -2668,7 +1179,7 @@ const userTypeMap = {
|
|
|
2668
1179
|
已关注的用户: 2,
|
|
2669
1180
|
已关注7天及以上的用户: 3
|
|
2670
1181
|
};
|
|
2671
|
-
const
|
|
1182
|
+
const generatorFormData = (data)=>{
|
|
2672
1183
|
const formData = new URLSearchParams();
|
|
2673
1184
|
for (const [key, value] of Object.entries(data))formData.append(key, String(value));
|
|
2674
1185
|
return formData.toString();
|
|
@@ -2684,7 +1195,7 @@ const checkCopyrightStat = async (http, params, data)=>{
|
|
|
2684
1195
|
token: params.token,
|
|
2685
1196
|
lang: "zh_CN"
|
|
2686
1197
|
},
|
|
2687
|
-
data:
|
|
1198
|
+
data: generatorFormData(data)
|
|
2688
1199
|
});
|
|
2689
1200
|
} catch (error) {
|
|
2690
1201
|
resData = error?.data;
|
|
@@ -2798,7 +1309,7 @@ const weixinPublish_mock_mockAction = async (task, params)=>{
|
|
|
2798
1309
|
params: {
|
|
2799
1310
|
action: "searchacct"
|
|
2800
1311
|
},
|
|
2801
|
-
data:
|
|
1312
|
+
data: generatorFormData({
|
|
2802
1313
|
lang: "zh_CN",
|
|
2803
1314
|
f: "json",
|
|
2804
1315
|
ajax: 1,
|
|
@@ -2927,7 +1438,7 @@ const weixinPublish_mock_mockAction = async (task, params)=>{
|
|
|
2927
1438
|
params: {
|
|
2928
1439
|
action: 'addautoreply'
|
|
2929
1440
|
},
|
|
2930
|
-
data:
|
|
1441
|
+
data: generatorFormData({
|
|
2931
1442
|
type: 1,
|
|
2932
1443
|
fingerprint,
|
|
2933
1444
|
token: params.token,
|
|
@@ -3049,7 +1560,7 @@ const weixinPublish_mock_mockAction = async (task, params)=>{
|
|
|
3049
1560
|
type: 77,
|
|
3050
1561
|
lang: "zh_CN"
|
|
3051
1562
|
},
|
|
3052
|
-
data:
|
|
1563
|
+
data: generatorFormData(draftData),
|
|
3053
1564
|
defaultErrorMsg: "创建草稿失败,请稍后重试发布。"
|
|
3054
1565
|
});
|
|
3055
1566
|
if ("draft" === params.saveType) return {
|
|
@@ -3082,7 +1593,7 @@ const weixinPublish_mock_mockAction = async (task, params)=>{
|
|
|
3082
1593
|
lang: "zh_CN",
|
|
3083
1594
|
token: params.token
|
|
3084
1595
|
},
|
|
3085
|
-
data:
|
|
1596
|
+
data: generatorFormData({
|
|
3086
1597
|
token: params.token,
|
|
3087
1598
|
lang: "zh_CN",
|
|
3088
1599
|
f: "json",
|
|
@@ -3113,7 +1624,7 @@ const weixinPublish_mock_mockAction = async (task, params)=>{
|
|
|
3113
1624
|
token: params.token,
|
|
3114
1625
|
lang: "zh_CN"
|
|
3115
1626
|
},
|
|
3116
|
-
data:
|
|
1627
|
+
data: generatorFormData({
|
|
3117
1628
|
appmsgid: appMsgId,
|
|
3118
1629
|
fingerprint,
|
|
3119
1630
|
token: params.token,
|
|
@@ -3125,7 +1636,7 @@ const weixinPublish_mock_mockAction = async (task, params)=>{
|
|
|
3125
1636
|
await http.api({
|
|
3126
1637
|
method: "post",
|
|
3127
1638
|
url: "https://mp.weixin.qq.com/cgi-bin/masssend?action=check_same_material",
|
|
3128
|
-
data:
|
|
1639
|
+
data: generatorFormData({
|
|
3129
1640
|
msgid: appMsgId,
|
|
3130
1641
|
fingerprint,
|
|
3131
1642
|
token: params.token,
|
|
@@ -3164,7 +1675,7 @@ const weixinPublish_mock_mockAction = async (task, params)=>{
|
|
|
3164
1675
|
token: params.token,
|
|
3165
1676
|
lang: "zh_CN"
|
|
3166
1677
|
},
|
|
3167
|
-
data:
|
|
1678
|
+
data: generatorFormData({
|
|
3168
1679
|
appmsg_id: appMsgId,
|
|
3169
1680
|
fingerprint,
|
|
3170
1681
|
token: params.token,
|
|
@@ -3172,7 +1683,7 @@ const weixinPublish_mock_mockAction = async (task, params)=>{
|
|
|
3172
1683
|
f: "json",
|
|
3173
1684
|
ajax: 1,
|
|
3174
1685
|
is_release_publish_page: params.masssend ? 0 : 1,
|
|
3175
|
-
send_time:
|
|
1686
|
+
send_time: 0,
|
|
3176
1687
|
random: Math.random().toString()
|
|
3177
1688
|
})
|
|
3178
1689
|
});
|
|
@@ -3183,7 +1694,7 @@ const weixinPublish_mock_mockAction = async (task, params)=>{
|
|
|
3183
1694
|
params: {
|
|
3184
1695
|
action: "check_music"
|
|
3185
1696
|
},
|
|
3186
|
-
data:
|
|
1697
|
+
data: generatorFormData({
|
|
3187
1698
|
appmsgid: appMsgId,
|
|
3188
1699
|
masssend_check: 1,
|
|
3189
1700
|
fingerprint,
|
|
@@ -3203,7 +1714,7 @@ const weixinPublish_mock_mockAction = async (task, params)=>{
|
|
|
3203
1714
|
lang: "zh_CN",
|
|
3204
1715
|
1: 1
|
|
3205
1716
|
},
|
|
3206
|
-
data:
|
|
1717
|
+
data: generatorFormData({
|
|
3207
1718
|
token: params.token,
|
|
3208
1719
|
lang: "zh_CN",
|
|
3209
1720
|
f: "json",
|
|
@@ -3223,7 +1734,7 @@ const weixinPublish_mock_mockAction = async (task, params)=>{
|
|
|
3223
1734
|
lang: "zh_CN",
|
|
3224
1735
|
1: 1
|
|
3225
1736
|
},
|
|
3226
|
-
data:
|
|
1737
|
+
data: generatorFormData({
|
|
3227
1738
|
token: params.token,
|
|
3228
1739
|
lang: "zh_CN",
|
|
3229
1740
|
f: "json",
|
|
@@ -3255,7 +1766,6 @@ const weixinPublish_mock_mockAction = async (task, params)=>{
|
|
|
3255
1766
|
ticket: getTicketResult.ticket,
|
|
3256
1767
|
uuid,
|
|
3257
1768
|
msgid: operation_seq,
|
|
3258
|
-
open_email: !!params.settingInfo.timer,
|
|
3259
1769
|
...params.masssend ? {} : {
|
|
3260
1770
|
publish_type: 1
|
|
3261
1771
|
}
|
|
@@ -3278,7 +1788,7 @@ const weixinPublish_mock_mockAction = async (task, params)=>{
|
|
|
3278
1788
|
lang: "zh_CN",
|
|
3279
1789
|
timespam: Date.now()
|
|
3280
1790
|
},
|
|
3281
|
-
data:
|
|
1791
|
+
data: generatorFormData({
|
|
3282
1792
|
token: params.token,
|
|
3283
1793
|
lang: "zh_CN",
|
|
3284
1794
|
f: "json",
|
|
@@ -3308,7 +1818,7 @@ const weixinPublish_mock_mockAction = async (task, params)=>{
|
|
|
3308
1818
|
lang: "zh_CN",
|
|
3309
1819
|
1: 1
|
|
3310
1820
|
},
|
|
3311
|
-
data:
|
|
1821
|
+
data: generatorFormData({
|
|
3312
1822
|
token: params.token,
|
|
3313
1823
|
lang: "zh_CN",
|
|
3314
1824
|
f: "json",
|
|
@@ -3326,14 +1836,11 @@ const weixinPublish_mock_mockAction = async (task, params)=>{
|
|
|
3326
1836
|
t: "ajax-response",
|
|
3327
1837
|
token: params.token,
|
|
3328
1838
|
lang: "zh_CN",
|
|
3329
|
-
...params.settingInfo.timer ? {
|
|
3330
|
-
action: "time_send"
|
|
3331
|
-
} : {},
|
|
3332
1839
|
...params.masssend ? {} : {
|
|
3333
1840
|
is_release_publish_page: 1
|
|
3334
1841
|
}
|
|
3335
1842
|
},
|
|
3336
|
-
data:
|
|
1843
|
+
data: generatorFormData({
|
|
3337
1844
|
token: params.token,
|
|
3338
1845
|
lang: "zh_CN",
|
|
3339
1846
|
f: "json",
|
|
@@ -3350,7 +1857,7 @@ const weixinPublish_mock_mockAction = async (task, params)=>{
|
|
|
3350
1857
|
country: "",
|
|
3351
1858
|
province: "",
|
|
3352
1859
|
city: "",
|
|
3353
|
-
send_time:
|
|
1860
|
+
send_time: "0",
|
|
3354
1861
|
type: "10",
|
|
3355
1862
|
share_page: "1",
|
|
3356
1863
|
synctxweibo: "0",
|
|
@@ -3367,7 +1874,7 @@ const weixinPublish_mock_mockAction = async (task, params)=>{
|
|
|
3367
1874
|
}),
|
|
3368
1875
|
defaultErrorMsg: params.masssend ? "文章群发异常,请尝试关闭群发或稍后重试。" : "文章发布异常,请稍后重试。"
|
|
3369
1876
|
});
|
|
3370
|
-
return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)(appMsgId,
|
|
1877
|
+
return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)(appMsgId, "微信公众号发布完成。");
|
|
3371
1878
|
};
|
|
3372
1879
|
const waitQrcodeResultMaxTime = 2000 * scanRetryMaxCount;
|
|
3373
1880
|
const weixinPublish_rpa_rpaAction = async (task, params)=>{
|
|
@@ -3694,7 +2201,7 @@ const weixinPublish_rpa_rpaAction = async (task, params)=>{
|
|
|
3694
2201
|
await poperInstance.locator('.frm_radio_item label[for="not_recomment_0"]').click();
|
|
3695
2202
|
}
|
|
3696
2203
|
await page.waitForTimeout(1000);
|
|
3697
|
-
const articleId = await new Promise(
|
|
2204
|
+
const articleId = await new Promise((resolve)=>{
|
|
3698
2205
|
const handleResponse = async (response)=>{
|
|
3699
2206
|
const url = response.url();
|
|
3700
2207
|
const query = parseUrlQueryString(url);
|
|
@@ -3706,34 +2213,7 @@ const weixinPublish_rpa_rpaAction = async (task, params)=>{
|
|
|
3706
2213
|
};
|
|
3707
2214
|
page.on("response", handleResponse);
|
|
3708
2215
|
page.locator("#editor_pannel #bottom_main #js_button_area #js_send button").click();
|
|
3709
|
-
await page.waitForTimeout(200);
|
|
3710
|
-
if (params.settingInfo.timer) {
|
|
3711
|
-
await page.locator(".mass-send .mass-send__td-setting", {
|
|
3712
|
-
hasText: "定时发表"
|
|
3713
|
-
}).locator(".weui-desktop-switch__box").check();
|
|
3714
|
-
let dateD = Number(TimeFormatter.format(params.settingInfo.timer, "d"));
|
|
3715
|
-
let nowD = Number(TimeFormatter.format(Date.now(), "d"));
|
|
3716
|
-
await page.locator(".mass-send__timer .weui-desktop-form__dropdown__dt").click();
|
|
3717
|
-
const dropMenu = page.locator(".mass-send__timer .weui-desktop-dropdown-menu").locator(".weui-desktop-dropdown__list-ele");
|
|
3718
|
-
await dropMenu.filter({
|
|
3719
|
-
hasText: dateD == nowD ? "今天" : dateD == nowD + 1 ? "明天" : TimeFormatter.format(params.settingInfo.timer, "M月d日")
|
|
3720
|
-
}).click();
|
|
3721
|
-
const timeDropMenu = page.locator(".mass-send__timer .weui-desktop-picker__time:visible");
|
|
3722
|
-
await timeDropMenu.locator(".weui-desktop-form__input").fill(TimeFormatter.format(params.settingInfo.timer, "hh:mm"));
|
|
3723
|
-
await timeDropMenu.locator("i.weui-desktop-icon__time").click();
|
|
3724
|
-
}
|
|
3725
2216
|
});
|
|
3726
|
-
await page.waitForTimeout(200);
|
|
3727
|
-
if (params.masssend) {
|
|
3728
|
-
const times = Number(await page.locator(".mass-send .multi-sent__notice_time").locator('div[style="display: none;"] div:not([style*="display: none"]) span').textContent());
|
|
3729
|
-
if (0 == times) return {
|
|
3730
|
-
code: 200,
|
|
3731
|
-
message: "今日群发次数用尽,请明天再试。",
|
|
3732
|
-
data: ""
|
|
3733
|
-
};
|
|
3734
|
-
await page.locator(".mass-send .mass_send__notify").locator(".weui-desktop-switch__box").check();
|
|
3735
|
-
} else await page.locator(".mass-send .mass_send__notify").locator(".weui-desktop-switch__box").uncheck();
|
|
3736
|
-
await page.waitForTimeout(200);
|
|
3737
2217
|
await page.waitForSelector('.new_mass_send_dialog .weui-desktop-dialog__wrp:not([style*="display: none"])', {
|
|
3738
2218
|
state: "visible"
|
|
3739
2219
|
});
|
|
@@ -3742,19 +2222,6 @@ const weixinPublish_rpa_rpaAction = async (task, params)=>{
|
|
|
3742
2222
|
state: "visible"
|
|
3743
2223
|
});
|
|
3744
2224
|
await page.locator(".double_check_dialog .weui-desktop-dialog .weui-desktop-dialog__ft button.weui-desktop-btn_primary").click();
|
|
3745
|
-
await page.waitForTimeout(2000);
|
|
3746
|
-
const originalCheckDialog = page.locator('div[data-transfer="true"][width\\.number="800"][height\\.number="800"] .weui-desktop-dialog__title');
|
|
3747
|
-
if (await originalCheckDialog.count() > 0) {
|
|
3748
|
-
if (await originalCheckDialog.textContent() === "原创校验") {
|
|
3749
|
-
const popMassend = page.locator('div[data-transfer="true"][width\\.number="800"][height\\.number="800"]');
|
|
3750
|
-
await popMassend.locator(".weui-desktop-btn_primary", {
|
|
3751
|
-
hasText: "下一步"
|
|
3752
|
-
}).click();
|
|
3753
|
-
await popMassend.locator(".weui-desktop-btn_primary", {
|
|
3754
|
-
hasText: "继续"
|
|
3755
|
-
}).click();
|
|
3756
|
-
}
|
|
3757
|
-
}
|
|
3758
2225
|
try {
|
|
3759
2226
|
const startTime = Date.now();
|
|
3760
2227
|
await new Promise(async (resolve, reject)=>{
|
|
@@ -4478,7 +2945,9 @@ const xiaohongshuPublish = async (task, params)=>{
|
|
|
4478
2945
|
if ("mockApi" === params.actionType) return xiaohongshuPublish_mock_mockAction(task, params);
|
|
4479
2946
|
return executeAction(xiaohongshuPublish_mock_mockAction, xiaohongshuPublish_rpa_rpaAction)(task, params);
|
|
4480
2947
|
};
|
|
4481
|
-
var package_namespaceObject =
|
|
2948
|
+
var package_namespaceObject = {
|
|
2949
|
+
i8: "1.2.10"
|
|
2950
|
+
};
|
|
4482
2951
|
class Action {
|
|
4483
2952
|
constructor(task){
|
|
4484
2953
|
this.task = task;
|
|
@@ -4502,30 +2971,9 @@ class Action {
|
|
|
4502
2971
|
searchToutiaoTopicList(params) {
|
|
4503
2972
|
return this.bindTask(searchToutiaoTopicList, params);
|
|
4504
2973
|
}
|
|
4505
|
-
TTFansExport(params) {
|
|
4506
|
-
return this.bindTask(TTFansExport, params);
|
|
4507
|
-
}
|
|
4508
|
-
XhsFansExport(params) {
|
|
4509
|
-
return this.bindTask(XhsFansExport, params);
|
|
4510
|
-
}
|
|
4511
|
-
WxFansExport(params) {
|
|
4512
|
-
return this.bindTask(WxFansExport, params);
|
|
4513
|
-
}
|
|
4514
|
-
BjhFansExport(params) {
|
|
4515
|
-
return this.bindTask(BjhFansExport, params);
|
|
4516
|
-
}
|
|
4517
|
-
searchToutiaoUserID(params) {
|
|
4518
|
-
return this.bindTask(searchToutiaoUserInfo, params);
|
|
4519
|
-
}
|
|
4520
|
-
searchToutiaoLocation(params) {
|
|
4521
|
-
return this.bindTask(searchToutiaoLocation, params);
|
|
4522
|
-
}
|
|
4523
2974
|
getToutiaoConfig(params) {
|
|
4524
2975
|
return this.bindTask(getToutiaoConfig, params);
|
|
4525
2976
|
}
|
|
4526
|
-
getBaijiahaoConfig(params) {
|
|
4527
|
-
return this.bindTask(getBaijiahaoConfig, params);
|
|
4528
|
-
}
|
|
4529
2977
|
baijiahaoPublish(params) {
|
|
4530
2978
|
return this.bindTask(baijiahaoPublish, params);
|
|
4531
2979
|
}
|