@iflyrpa/actions 1.2.11 → 1.2.12
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 +7 -1
- package/dist/actions/common/FansTool/index.d.ts +19 -0
- package/dist/actions/getBaijiaohaoConfig/index.d.ts +13 -0
- package/dist/actions/searchToutiaoLocation/index.d.ts +7 -0
- package/dist/actions/searchToutiaoUserID/index.d.ts +7 -0
- package/dist/actions/toutiaoPublish/index.d.ts +16 -0
- package/dist/actions/weixinPublish/index.d.ts +1 -0
- package/dist/bundle.js +1619 -80
- package/dist/bundle.js.map +1 -1
- package/dist/index.d.ts +15 -1
- package/dist/index.js +4353 -2801
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1631 -80
- package/dist/index.mjs.map +1 -1
- package/dist/types.d.ts +35 -5
- package/dist/utils/index.d.ts +9 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -9,6 +9,1110 @@ 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
|
+
})();
|
|
12
1116
|
class Http {
|
|
13
1117
|
static handleApiError(error) {
|
|
14
1118
|
if (error && "object" == typeof error && "code" in error && "message" in error) return error;
|
|
@@ -109,6 +1213,27 @@ const extractImgTag = (html)=>{
|
|
|
109
1213
|
parser.end();
|
|
110
1214
|
return srcList;
|
|
111
1215
|
};
|
|
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
|
+
}
|
|
112
1237
|
const replaceImgSrc = (html, callback)=>{
|
|
113
1238
|
let lastedHtml = html;
|
|
114
1239
|
const isImageTag = (node)=>"tag" === node.type && "img" === node.name;
|
|
@@ -323,10 +1448,6 @@ const mockAction = async (task, params)=>{
|
|
|
323
1448
|
}
|
|
324
1449
|
return dom;
|
|
325
1450
|
});
|
|
326
|
-
let vertical_cover = params.settingInfo.baijiahaoVerticalCover;
|
|
327
|
-
if (vertical_cover) vertical_cover = (await uploadImages([
|
|
328
|
-
vertical_cover
|
|
329
|
-
]))[0].bos_url;
|
|
330
1451
|
const horizontalCoverUrl = "single" === baijiahaoCoverType ? [
|
|
331
1452
|
baijiahaoSingleCover
|
|
332
1453
|
] : baijiahaoMultCover;
|
|
@@ -350,17 +1471,18 @@ const mockAction = async (task, params)=>{
|
|
|
350
1471
|
is_checked: 1
|
|
351
1472
|
}
|
|
352
1473
|
] : [],
|
|
353
|
-
...
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
}
|
|
358
|
-
] : []
|
|
1474
|
+
...params.settingInfo.baijiahaoPublishConf?.map((item)=>({
|
|
1475
|
+
id: item.confName,
|
|
1476
|
+
is_checked: item.isChecked ? 1 : 0
|
|
1477
|
+
})) || []
|
|
359
1478
|
];
|
|
1479
|
+
if (isAi && !activity_list.some((item)=>'aigc_bjh_status' in item)) activity_list.push({
|
|
1480
|
+
id: 'aigc_bjh_status',
|
|
1481
|
+
is_checked: 1
|
|
1482
|
+
});
|
|
360
1483
|
const publishData = {
|
|
361
1484
|
title: params.settingInfo.baijiahaoTitle,
|
|
362
1485
|
content,
|
|
363
|
-
vertical_cover,
|
|
364
1486
|
abstract: params.settingInfo.baijiahaoAbstract,
|
|
365
1487
|
cover_layout,
|
|
366
1488
|
cover_images: JSON.stringify(cover_images),
|
|
@@ -372,7 +1494,11 @@ const mockAction = async (task, params)=>{
|
|
|
372
1494
|
usingImgFilter: "false",
|
|
373
1495
|
source: "upload",
|
|
374
1496
|
cover_source: "upload",
|
|
375
|
-
|
|
1497
|
+
event2news: params.settingInfo?.baijiahaoEvent2News ? 2 : 0,
|
|
1498
|
+
activity_list,
|
|
1499
|
+
...params.settingInfo.timer ? {
|
|
1500
|
+
timer_time: params.settingInfo.timer
|
|
1501
|
+
} : {}
|
|
376
1502
|
};
|
|
377
1503
|
const isDraft = "draft" === params.saveType;
|
|
378
1504
|
const saveUrl = isDraft ? "https://baijiahao.baidu.com/pcui/article/save?callback=bjhdraft" : "https://baijiahao.baidu.com/pcui/article/publish?callback=bjhpublish";
|
|
@@ -478,12 +1604,17 @@ const rpaAction = async (task, params)=>{
|
|
|
478
1604
|
await abstractFormItem.click();
|
|
479
1605
|
await abstractFormItem.fill(params.settingInfo.baijiahaoAbstract);
|
|
480
1606
|
const isAi = params.settingInfo.baijiahaoIsAi.includes("isAi");
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
1607
|
+
const settingFormItem = page.locator(".bjh-edit-wrap-set .cheetah-form-item").nth(5);
|
|
1608
|
+
if (isAi) await settingFormItem.locator("label.cheetah-checkbox-wrapper").filter({
|
|
1609
|
+
hasText: "AI创作声明"
|
|
1610
|
+
}).click();
|
|
1611
|
+
if (params.settingInfo.baijiahaoPublishConf) for (const item of params.settingInfo.baijiahaoPublishConf){
|
|
1612
|
+
const _settingFormItem = settingFormItem.locator("label.cheetah-checkbox-wrapper").locator(`span.${item.confName}`);
|
|
1613
|
+
if (await _settingFormItem.isChecked() !== item.isChecked) await _settingFormItem.click();
|
|
1614
|
+
await page.waitForTimeout(200);
|
|
486
1615
|
}
|
|
1616
|
+
const enent2NewsBtn = page.locator("input#event2news");
|
|
1617
|
+
if (await enent2NewsBtn.isVisible() && params.settingInfo.baijiahaoEvent2News) await enent2NewsBtn.click();
|
|
487
1618
|
if (params.settingInfo.baijiahaoActivity.length > 0 && params.settingInfo.baijiahaoSelectActivityCache.length > 0) {
|
|
488
1619
|
const activity = params.settingInfo.baijiahaoActivity.filter((it)=>params.settingInfo.baijiahaoSelectActivityCache.includes(it.id));
|
|
489
1620
|
if (activity.length > 0) {
|
|
@@ -495,13 +1626,16 @@ const rpaAction = async (task, params)=>{
|
|
|
495
1626
|
if (await findActivity.count() > 0) findActivity.first().locator("..").click();
|
|
496
1627
|
}
|
|
497
1628
|
}
|
|
498
|
-
const articleId = await new Promise((resolve)=>{
|
|
1629
|
+
const { articleId, message } = await new Promise(async (resolve)=>{
|
|
499
1630
|
const handleResponse = async (response)=>{
|
|
500
1631
|
const url = response.url();
|
|
501
1632
|
if (url.includes("/pcui/article/save") || url.includes("/pcui/article/publish")) {
|
|
502
1633
|
const jsonResponse = await response.json();
|
|
503
1634
|
page.off("response", handleResponse);
|
|
504
|
-
resolve(
|
|
1635
|
+
resolve({
|
|
1636
|
+
articleId: jsonResponse?.ret?.article_id,
|
|
1637
|
+
message: jsonResponse?.errmsg
|
|
1638
|
+
});
|
|
505
1639
|
}
|
|
506
1640
|
};
|
|
507
1641
|
page.on("response", handleResponse);
|
|
@@ -509,12 +1643,74 @@ const rpaAction = async (task, params)=>{
|
|
|
509
1643
|
if ("draft" === params.saveType) operatorContainer.locator(".op-btn-outter-content").filter({
|
|
510
1644
|
hasText: "存草稿"
|
|
511
1645
|
}).locator("button").click();
|
|
512
|
-
else
|
|
513
|
-
|
|
1646
|
+
else if (params.settingInfo.timer) {
|
|
1647
|
+
await operatorContainer.locator(".op-btn-outter-content").filter({
|
|
1648
|
+
hasText: "定时发布"
|
|
1649
|
+
}).locator("button").click();
|
|
1650
|
+
await page.locator(".timepublish-wrap-select .select-wrap", {
|
|
1651
|
+
hasText: "日"
|
|
1652
|
+
}).click();
|
|
1653
|
+
await page.locator('#select-date_list + * .cheetah-select-item-option', {
|
|
1654
|
+
hasText: TimeFormatter.format(params.settingInfo.timer, "M月dd日")
|
|
1655
|
+
}).click();
|
|
1656
|
+
await page.waitForTimeout(200);
|
|
1657
|
+
await page.locator(".timepublish-wrap-select .select-wrap", {
|
|
1658
|
+
hasText: "点"
|
|
1659
|
+
}).click();
|
|
1660
|
+
await page.locator('#select-hour_list +div.rc-virtual-list').hover();
|
|
1661
|
+
const scrollHourInfo = await page.evaluate(()=>{
|
|
1662
|
+
const hourInner = document.querySelector('#select-hour_list + * .rc-virtual-list-holder-inner');
|
|
1663
|
+
const hourElementHeight = hourInner?.children[0].clientHeight || 36;
|
|
1664
|
+
const hourMapsElem = Array.from(document.querySelectorAll('#select-hour_list + * .cheetah-select-item-option .cheetah-select-item-option-content'));
|
|
1665
|
+
const hourMap = hourMapsElem.map((item)=>item.textContent?.trim());
|
|
1666
|
+
return {
|
|
1667
|
+
elementHeight: hourElementHeight,
|
|
1668
|
+
elementItem: hourMap
|
|
1669
|
+
};
|
|
1670
|
+
});
|
|
1671
|
+
const fistHourElem = scrollHourInfo.elementItem[0];
|
|
1672
|
+
let fistHourElemH = Number(fistHourElem?.split("点")[0]);
|
|
1673
|
+
const lastHourElem = scrollHourInfo.elementItem[scrollHourInfo.elementItem.length - 1];
|
|
1674
|
+
let lastHourElemH = Number(lastHourElem?.split("点")[0]);
|
|
1675
|
+
let targetTimeH = Number(TimeFormatter.format(params.settingInfo.timer, 'h'));
|
|
1676
|
+
await page.mouse.wheel(0, targetTimeH > lastHourElemH ? (targetTimeH - lastHourElemH) * scrollHourInfo.elementHeight : targetTimeH < fistHourElemH ? -(fistHourElemH - targetTimeH) * scrollHourInfo.elementHeight : 0);
|
|
1677
|
+
await page.locator("#select-hour_list + * .cheetah-select-item-option ", {
|
|
1678
|
+
hasText: targetTimeH + "点"
|
|
1679
|
+
}).click();
|
|
1680
|
+
await page.waitForTimeout(200);
|
|
1681
|
+
await page.locator(".timepublish-wrap-select .select-wrap", {
|
|
1682
|
+
hasText: "分"
|
|
1683
|
+
}).click();
|
|
1684
|
+
await page.locator('#select-minute_list +div.rc-virtual-list').hover();
|
|
1685
|
+
const scrollMinuteInfo = await page.evaluate(()=>{
|
|
1686
|
+
const hourInner = document.querySelector('#select-minute_list + * .rc-virtual-list-holder-inner');
|
|
1687
|
+
const hourElementHeight = hourInner?.children[0].clientHeight || 36;
|
|
1688
|
+
const hourMapsElem = Array.from(document.querySelectorAll('#select-minute_list + * .cheetah-select-item-option .cheetah-select-item-option-content'));
|
|
1689
|
+
const hourMap = hourMapsElem.map((item)=>item.textContent?.trim());
|
|
1690
|
+
return {
|
|
1691
|
+
elementHeight: hourElementHeight,
|
|
1692
|
+
elementItem: hourMap
|
|
1693
|
+
};
|
|
1694
|
+
});
|
|
1695
|
+
const fistMinuteElem = scrollMinuteInfo.elementItem[0];
|
|
1696
|
+
let fistMinuteElemH = Number(fistMinuteElem?.split("分")[0]);
|
|
1697
|
+
const lastMinuteElem = scrollMinuteInfo.elementItem[scrollMinuteInfo.elementItem.length - 1];
|
|
1698
|
+
let lastMinuteElemH = Number(lastMinuteElem?.split("分")[0]);
|
|
1699
|
+
let targetTimeM = Number(TimeFormatter.format(params.settingInfo.timer, 'm'));
|
|
1700
|
+
await page.mouse.wheel(0, targetTimeM > lastMinuteElemH ? (targetTimeM - lastMinuteElemH) * scrollMinuteInfo.elementHeight : targetTimeM < fistMinuteElemH ? -(fistMinuteElemH - targetTimeM) * scrollMinuteInfo.elementHeight : 0);
|
|
1701
|
+
await page.locator("#select-minute_list + * .cheetah-select-item-option ", {
|
|
1702
|
+
hasText: targetTimeM + "分"
|
|
1703
|
+
}).click();
|
|
1704
|
+
await page.waitForTimeout(200);
|
|
1705
|
+
await page.locator(".cheetah-modal-confirm-btns button").filter({
|
|
1706
|
+
hasText: "定时发布"
|
|
1707
|
+
}).click();
|
|
1708
|
+
} else operatorContainer.locator(".op-btn-outter-content").filter({
|
|
1709
|
+
hasText: /^发布/
|
|
514
1710
|
}).locator("button").click();
|
|
515
1711
|
});
|
|
516
1712
|
await page.close();
|
|
517
|
-
return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)(articleId);
|
|
1713
|
+
return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)(articleId, articleId ? "发布成功" : message);
|
|
518
1714
|
};
|
|
519
1715
|
const baijiahaoPublish = async (task, params)=>{
|
|
520
1716
|
if ("rpa" === params.actionType) return rpaAction(task, params);
|
|
@@ -599,6 +1795,28 @@ const getToutiaoConfig = async (_task, params)=>{
|
|
|
599
1795
|
userRights
|
|
600
1796
|
});
|
|
601
1797
|
};
|
|
1798
|
+
const getBaijiahaoConfig = async (_task, params)=>{
|
|
1799
|
+
const cookies = params.cookies ?? [];
|
|
1800
|
+
const http = new Http({
|
|
1801
|
+
headers: {
|
|
1802
|
+
cookie: cookies.map((it)=>`${it.name}=${it.value}`).join(";"),
|
|
1803
|
+
token: params.token
|
|
1804
|
+
}
|
|
1805
|
+
});
|
|
1806
|
+
const res = await http.api({
|
|
1807
|
+
method: "get",
|
|
1808
|
+
url: "https://baijiahao.baidu.com/pcui/article/edit",
|
|
1809
|
+
params: {
|
|
1810
|
+
type: "news"
|
|
1811
|
+
}
|
|
1812
|
+
});
|
|
1813
|
+
return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)(res?.data?.article.activity_list.map((_item)=>({
|
|
1814
|
+
id: _item.id,
|
|
1815
|
+
name: _item.name,
|
|
1816
|
+
detail: _item.detail,
|
|
1817
|
+
is_enable: _item.is_enable
|
|
1818
|
+
})) ?? [], "获取头条发布配置项成功");
|
|
1819
|
+
};
|
|
602
1820
|
const searchToutiaoTopicList = async (_task, params)=>{
|
|
603
1821
|
const http = new Http({
|
|
604
1822
|
headers: {
|
|
@@ -621,6 +1839,72 @@ const searchToutiaoTopicList = async (_task, params)=>{
|
|
|
621
1839
|
return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)([]);
|
|
622
1840
|
}
|
|
623
1841
|
};
|
|
1842
|
+
const searchToutiaoLocation = async (_task, params)=>{
|
|
1843
|
+
const http = new Http({
|
|
1844
|
+
headers: {
|
|
1845
|
+
cookie: params.cookies.map((it)=>`${it.name}=${it.value}`).join(";"),
|
|
1846
|
+
referer: "https://mp.toutiao.com/profile_v4/graphic/publish",
|
|
1847
|
+
biz: 1231
|
|
1848
|
+
}
|
|
1849
|
+
});
|
|
1850
|
+
try {
|
|
1851
|
+
const res = await http.api({
|
|
1852
|
+
method: "post",
|
|
1853
|
+
url: "https://mp.toutiao.com/poi/api/searchplace",
|
|
1854
|
+
data: {
|
|
1855
|
+
appid: 1231,
|
|
1856
|
+
device: 2,
|
|
1857
|
+
keywords: params.placeName,
|
|
1858
|
+
language: "zh-CN",
|
|
1859
|
+
location: "-1,-1",
|
|
1860
|
+
offset: 20,
|
|
1861
|
+
page: 1,
|
|
1862
|
+
region: "CN",
|
|
1863
|
+
scenario: "TIPS",
|
|
1864
|
+
timestamp: Math.floor(Date.now() / 1000)
|
|
1865
|
+
}
|
|
1866
|
+
});
|
|
1867
|
+
if (200 === res.code) return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)(res.data.poi.map((item)=>({
|
|
1868
|
+
position: item.name,
|
|
1869
|
+
city: item.city,
|
|
1870
|
+
longitude: item.longitude,
|
|
1871
|
+
latitude: item.latitude,
|
|
1872
|
+
type_code: item.type_code,
|
|
1873
|
+
poi_id: item.id
|
|
1874
|
+
})));
|
|
1875
|
+
return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)([]);
|
|
1876
|
+
} catch (error) {
|
|
1877
|
+
return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)([]);
|
|
1878
|
+
}
|
|
1879
|
+
};
|
|
1880
|
+
const searchToutiaoUserInfo = async (_task, params)=>{
|
|
1881
|
+
const http = new Http({
|
|
1882
|
+
headers: {
|
|
1883
|
+
cookie: params.cookies.map((it)=>`${it.name}=${it.value}`).join(";"),
|
|
1884
|
+
referer: "https://mp.toutiao.com/profile_v4/graphic/publish"
|
|
1885
|
+
}
|
|
1886
|
+
});
|
|
1887
|
+
try {
|
|
1888
|
+
const res = await http.api({
|
|
1889
|
+
method: "get",
|
|
1890
|
+
url: "https://mp.toutiao.com/ugc/publish/post/v1/suggest/",
|
|
1891
|
+
params: {
|
|
1892
|
+
words: params.UserName,
|
|
1893
|
+
language: "zh",
|
|
1894
|
+
app_name: "toutiao_mp"
|
|
1895
|
+
}
|
|
1896
|
+
});
|
|
1897
|
+
if (0 === res.err_no) return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)(res.data.suggest.map((item)=>({
|
|
1898
|
+
user_id: item.user.info.user_id,
|
|
1899
|
+
name: item.user.info.name,
|
|
1900
|
+
avatar_url: item.user.info.avatar_url,
|
|
1901
|
+
followers_count: item.user.relation_count.followers_count
|
|
1902
|
+
})), '搜索成功');
|
|
1903
|
+
return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)([]);
|
|
1904
|
+
} catch (error) {
|
|
1905
|
+
return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)([]);
|
|
1906
|
+
}
|
|
1907
|
+
};
|
|
624
1908
|
const searchXiaohongshuLocation = async (_task, params)=>{
|
|
625
1909
|
const http = new Http({
|
|
626
1910
|
headers: {
|
|
@@ -678,6 +1962,7 @@ const searchXiaohongshuTopicList = async (_task, params)=>{
|
|
|
678
1962
|
return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)([]);
|
|
679
1963
|
}
|
|
680
1964
|
};
|
|
1965
|
+
const GenAB = __webpack_require__("./src/utils/ttABEncrypt.js");
|
|
681
1966
|
const mock_errnoMap = {
|
|
682
1967
|
20004020: "图片上传异常,请重新绑定账号后同步。",
|
|
683
1968
|
7115: "正文图片和封面图片推荐jpg、png格式。",
|
|
@@ -694,6 +1979,11 @@ const mock_errnoMap = {
|
|
|
694
1979
|
2005: "账号无【申明原创】权限,请关闭申明后重试。",
|
|
695
1980
|
100004: "用户未登录或登陆已过期,请重新登陆后重试。"
|
|
696
1981
|
};
|
|
1982
|
+
const mock_generatorFormData = (data)=>Object.entries(data).map(([key, value])=>{
|
|
1983
|
+
const encodedKey = encodeURIComponent(key);
|
|
1984
|
+
const encodedValue = encodeURIComponent(String(value));
|
|
1985
|
+
return `${encodedKey}=${encodedValue}`;
|
|
1986
|
+
}).join('&');
|
|
697
1987
|
const get3101DetailError = (errorList, message, saveType)=>{
|
|
698
1988
|
let error = "";
|
|
699
1989
|
if (message?.includes("当日发文")) error = errorList[0];
|
|
@@ -702,7 +1992,7 @@ const get3101DetailError = (errorList, message, saveType)=>{
|
|
|
702
1992
|
return error || ("draft" === saveType ? "文章同步异常,请稍后重试。" : "文章发布异常,请稍后重试。");
|
|
703
1993
|
};
|
|
704
1994
|
const mock_mockAction = async (task, params)=>{
|
|
705
|
-
const { toutiaoSingleCover, toutiaoMultCover, toutiaoCoverType, toutiaoOriginal } = params.settingInfo;
|
|
1995
|
+
const { toutiaoSingleCover, toutiaoMultCover, toutiaoCoverType, toutiaoOriginal, toutiaoExclusive, toutiaoClaim } = params.settingInfo;
|
|
706
1996
|
const tmpCachePath = task.getTmpPath();
|
|
707
1997
|
const http = new Http({
|
|
708
1998
|
headers: {
|
|
@@ -758,23 +2048,27 @@ const mock_mockAction = async (task, params)=>{
|
|
|
758
2048
|
toutiaoSingleCover
|
|
759
2049
|
] : "multiple" === toutiaoCoverType ? toutiaoMultCover : [];
|
|
760
2050
|
const coverRes = await uploadImages(coverUrl);
|
|
761
|
-
const isSingleTitle = "single" === params.settingInfo.toutiaoTitleType;
|
|
762
2051
|
const location = params.settingInfo.toutiaoLocation;
|
|
763
2052
|
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
|
-
}));
|
|
773
2053
|
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("");
|
|
2054
|
+
let sourceData = {
|
|
2055
|
+
source_type: toutiaoClaim ? toutiaoClaim.type : 5
|
|
2056
|
+
};
|
|
2057
|
+
if (toutiaoClaim && 1 === toutiaoClaim.type) {
|
|
2058
|
+
if (!toutiaoClaim?.source_author_uid) return {
|
|
2059
|
+
code: 500,
|
|
2060
|
+
message: "请填写作者ID",
|
|
2061
|
+
data: ""
|
|
2062
|
+
};
|
|
2063
|
+
sourceData = {
|
|
2064
|
+
...sourceData,
|
|
2065
|
+
source_author_uid: toutiaoClaim.source_author_uid,
|
|
2066
|
+
time_format: toutiaoClaim.time_format,
|
|
2067
|
+
position: toutiaoClaim.position
|
|
2068
|
+
};
|
|
2069
|
+
}
|
|
774
2070
|
const extraData = {
|
|
775
2071
|
content_word_cnt: params.settingInfo.cntWord,
|
|
776
|
-
is_multi_title: isSingleTitle ? 0 : 1,
|
|
777
|
-
sub_titles: isSingleTitle ? [] : multiTitleData,
|
|
778
2072
|
gd_ext: {
|
|
779
2073
|
entrance: "",
|
|
780
2074
|
from_page: "publisher_mp",
|
|
@@ -783,12 +2077,7 @@ const mock_mockAction = async (task, params)=>{
|
|
|
783
2077
|
is_message: 0
|
|
784
2078
|
},
|
|
785
2079
|
tuwen_wtt_trans_flag: "0",
|
|
786
|
-
info_source:
|
|
787
|
-
source_type: 5,
|
|
788
|
-
source_link: "",
|
|
789
|
-
time_format: "",
|
|
790
|
-
position: {}
|
|
791
|
-
},
|
|
2080
|
+
info_source: sourceData,
|
|
792
2081
|
...location ? {
|
|
793
2082
|
city: location.label,
|
|
794
2083
|
city_code: location.value
|
|
@@ -813,8 +2102,8 @@ const mock_mockAction = async (task, params)=>{
|
|
|
813
2102
|
trends_writing_tag: 0,
|
|
814
2103
|
is_refute_rumor: 0,
|
|
815
2104
|
save: "publish" === params.saveType ? 1 : 0,
|
|
816
|
-
timer_status: 0,
|
|
817
|
-
timer_time: "",
|
|
2105
|
+
timer_status: params.settingInfo.timer ? 1 : 0,
|
|
2106
|
+
timer_time: params.settingInfo.timer ? TimeFormatter.format(params.settingInfo.timer) : "",
|
|
818
2107
|
title: params.title,
|
|
819
2108
|
content: content + topicContent,
|
|
820
2109
|
extra: JSON.stringify(extraData),
|
|
@@ -835,10 +2124,31 @@ const mock_mockAction = async (task, params)=>{
|
|
|
835
2124
|
}
|
|
836
2125
|
}))),
|
|
837
2126
|
article_ad_type: getAddTypeValue(params.settingInfo.toutiaoAd),
|
|
838
|
-
|
|
839
|
-
claim_exclusive: toutiaoOriginal.includes("exclusive") ? 1 : 0
|
|
2127
|
+
claim_exclusive: toutiaoExclusive ? toutiaoExclusive : toutiaoOriginal.includes("exclusive") ? 1 : 0
|
|
840
2128
|
};
|
|
841
|
-
const
|
|
2129
|
+
const msToken = params.cookies.find((it)=>"msToken" === it.name)?.value;
|
|
2130
|
+
let publishOption = {};
|
|
2131
|
+
if (msToken) {
|
|
2132
|
+
const postHeaders = mock_generatorFormData({
|
|
2133
|
+
source: "mp",
|
|
2134
|
+
type: "article",
|
|
2135
|
+
aid: 1231,
|
|
2136
|
+
mp_publish_ab_val: 0,
|
|
2137
|
+
msToken: msToken
|
|
2138
|
+
});
|
|
2139
|
+
const postData = mock_generatorFormData(publishData);
|
|
2140
|
+
let a_bogus = GenAB(postHeaders, postData);
|
|
2141
|
+
publishOption = {
|
|
2142
|
+
method: "post",
|
|
2143
|
+
url: `https://mp.toutiao.com/mp/agw/article/publish?${postHeaders}&a_bogus=${a_bogus}`,
|
|
2144
|
+
data: postData,
|
|
2145
|
+
headers: {
|
|
2146
|
+
"content-type": "application/x-www-form-urlencoded",
|
|
2147
|
+
"user-agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36"
|
|
2148
|
+
},
|
|
2149
|
+
defaultErrorMsg: "draft" === params.saveType ? "文章同步异常,请稍后重试。" : "文章发布异常,请稍后重试。"
|
|
2150
|
+
};
|
|
2151
|
+
} else publishOption = {
|
|
842
2152
|
method: "post",
|
|
843
2153
|
url: "https://mp.toutiao.com/mp/agw/article/publish?source=mp&type=article&aid=1",
|
|
844
2154
|
data: publishData,
|
|
@@ -846,9 +2156,11 @@ const mock_mockAction = async (task, params)=>{
|
|
|
846
2156
|
"content-type": "application/x-www-form-urlencoded"
|
|
847
2157
|
},
|
|
848
2158
|
defaultErrorMsg: "draft" === params.saveType ? "文章同步异常,请稍后重试。" : "文章发布异常,请稍后重试。"
|
|
849
|
-
}
|
|
2159
|
+
};
|
|
2160
|
+
const publishResult = await http.api(publishOption);
|
|
850
2161
|
return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)(publishResult.data.pgc_id);
|
|
851
2162
|
};
|
|
2163
|
+
const rpa_GenAB = __webpack_require__("./src/utils/ttABEncrypt.js");
|
|
852
2164
|
const rpa_rpaAction = async (task, params)=>{
|
|
853
2165
|
const tmpCachePath = task.getTmpPath();
|
|
854
2166
|
const commonCookies = {
|
|
@@ -883,9 +2195,30 @@ const rpa_rpaAction = async (task, params)=>{
|
|
|
883
2195
|
await page.route('**', async (route, request)=>{
|
|
884
2196
|
const url = new URL(request.url());
|
|
885
2197
|
if (interceptUrls.some((pattern)=>url.pathname.includes(pattern))) {
|
|
886
|
-
|
|
2198
|
+
const headers = {
|
|
2199
|
+
...request.headers(),
|
|
2200
|
+
"user-agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36"
|
|
2201
|
+
};
|
|
2202
|
+
const generatorFormData = (data)=>Object.entries(data).map(([key, value])=>{
|
|
2203
|
+
const encodedKey = encodeURIComponent(key);
|
|
2204
|
+
const encodedValue = encodeURIComponent(String(value));
|
|
2205
|
+
return `${encodedKey}=${encodedValue}`;
|
|
2206
|
+
}).join('&');
|
|
2207
|
+
const postHeaders = generatorFormData({
|
|
2208
|
+
source: "mp",
|
|
2209
|
+
type: "article",
|
|
2210
|
+
aid: 1231,
|
|
2211
|
+
mp_publish_ab_val: 0,
|
|
2212
|
+
msToken: url.searchParams.get('msToken')
|
|
2213
|
+
});
|
|
2214
|
+
const postData = request.postData() || "";
|
|
2215
|
+
let a_bogus = rpa_GenAB(postHeaders, postData);
|
|
2216
|
+
url.searchParams.set('aid', "1231");
|
|
2217
|
+
url.searchParams.set('mp_publish_ab_val', "0");
|
|
2218
|
+
url.searchParams.set('a_bogus', a_bogus);
|
|
887
2219
|
await route.continue({
|
|
888
|
-
url: url.toString()
|
|
2220
|
+
url: url.toString(),
|
|
2221
|
+
headers: headers
|
|
889
2222
|
});
|
|
890
2223
|
} else await route.continue();
|
|
891
2224
|
});
|
|
@@ -960,13 +2293,40 @@ const rpa_rpaAction = async (task, params)=>{
|
|
|
960
2293
|
}).locator("xpath=..");
|
|
961
2294
|
const isAdOptionVisible = await adContainer.isVisible();
|
|
962
2295
|
if (isAdOptionVisible) await adContainer.locator(`label.byte-radio:has(input[value="${getAddTypeValue(params.settingInfo.toutiaoAd)}"])`).click();
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
2296
|
+
const exclusiveContainer = page.locator(".form-container .edit-cell .edit-label").filter({
|
|
2297
|
+
hasText: "声明首发"
|
|
2298
|
+
}).locator("xpath=..");
|
|
2299
|
+
if (params.settingInfo.toutiaoOriginal.includes("exclusive") || params.settingInfo.toutiaoExclusive) exclusiveContainer.locator(".exclusive .exclusive-checkbox-wraper .byte-checkbox").check();
|
|
2300
|
+
else exclusiveContainer.locator(".exclusive .exclusive-checkbox-wraper .byte-checkbox").uncheck();
|
|
2301
|
+
let claim = params.settingInfo.toutiaoClaim ? params.settingInfo.toutiaoClaim.type : 5;
|
|
2302
|
+
switch(claim){
|
|
2303
|
+
case 3:
|
|
2304
|
+
await page.locator(".source-wrap .byte-checkbox", {
|
|
2305
|
+
hasText: "引用AI"
|
|
2306
|
+
}).locator(".byte-checkbox-mask").check();
|
|
2307
|
+
break;
|
|
2308
|
+
case 4:
|
|
2309
|
+
await page.locator(".source-wrap .byte-checkbox", {
|
|
2310
|
+
hasText: "取材网络"
|
|
2311
|
+
}).locator(".byte-checkbox-mask").check();
|
|
2312
|
+
break;
|
|
2313
|
+
case 5:
|
|
2314
|
+
await page.locator(".source-wrap .byte-checkbox", {
|
|
2315
|
+
hasText: "个人观点,仅供参考"
|
|
2316
|
+
}).locator(".byte-checkbox-mask").check();
|
|
2317
|
+
break;
|
|
2318
|
+
case 6:
|
|
2319
|
+
await page.locator(".source-wrap .byte-checkbox", {
|
|
2320
|
+
hasText: "虚构演绎,故事经历"
|
|
2321
|
+
}).locator(".byte-checkbox-mask").check();
|
|
2322
|
+
break;
|
|
2323
|
+
default:
|
|
2324
|
+
await page.locator(".source-wrap .byte-checkbox", {
|
|
2325
|
+
hasText: "个人观点,仅供参考"
|
|
2326
|
+
}).locator(".byte-checkbox-mask").check();
|
|
2327
|
+
break;
|
|
968
2328
|
}
|
|
969
|
-
const articleId = await new Promise((resolve)=>{
|
|
2329
|
+
const articleId = await new Promise(async (resolve)=>{
|
|
970
2330
|
const handleResponse = async (response)=>{
|
|
971
2331
|
const url = response.url();
|
|
972
2332
|
if (url.includes("/mp/agw/article/publish")) {
|
|
@@ -976,7 +2336,32 @@ const rpa_rpaAction = async (task, params)=>{
|
|
|
976
2336
|
}
|
|
977
2337
|
};
|
|
978
2338
|
page.on("response", handleResponse);
|
|
979
|
-
|
|
2339
|
+
if (params.settingInfo.timer && "publish" == params.saveType) {
|
|
2340
|
+
await page.locator(".publish-footer button").filter({
|
|
2341
|
+
hasText: "定时发布"
|
|
2342
|
+
}).click();
|
|
2343
|
+
await page.waitForSelector('button.publish-btn:not(.byte-btn-loading) >> nth=1', {
|
|
2344
|
+
state: 'attached'
|
|
2345
|
+
});
|
|
2346
|
+
await page.locator(".byte-modal-content .day-select .byte-select-view-value").click();
|
|
2347
|
+
await page.locator('li.byte-select-option', {
|
|
2348
|
+
hasText: TimeFormatter.format(params.settingInfo.timer, "MM月dd日")
|
|
2349
|
+
}).click();
|
|
2350
|
+
await page.waitForTimeout(200);
|
|
2351
|
+
await page.locator(".byte-modal-content .hour-select .byte-select-view-value").click();
|
|
2352
|
+
await page.locator('li.byte-select-option', {
|
|
2353
|
+
hasText: TimeFormatter.format(params.settingInfo.timer, "h")
|
|
2354
|
+
}).click();
|
|
2355
|
+
await page.waitForTimeout(200);
|
|
2356
|
+
await page.locator(".byte-modal-content .minute-select .byte-select-view-value").click();
|
|
2357
|
+
await page.locator('li.byte-select-option', {
|
|
2358
|
+
hasText: TimeFormatter.format(params.settingInfo.timer, "m")
|
|
2359
|
+
}).click();
|
|
2360
|
+
await page.waitForTimeout(200);
|
|
2361
|
+
await page.locator(".byte-modal-footer button").filter({
|
|
2362
|
+
hasText: "预览并定时发布"
|
|
2363
|
+
}).click();
|
|
2364
|
+
} else await page.locator(".publish-footer button").filter({
|
|
980
2365
|
hasText: "预览并发布"
|
|
981
2366
|
}).click();
|
|
982
2367
|
});
|
|
@@ -987,17 +2372,17 @@ const rpa_rpaAction = async (task, params)=>{
|
|
|
987
2372
|
}
|
|
988
2373
|
if ("publish" === params.saveType) {
|
|
989
2374
|
await page.locator(".publish-footer button").filter({
|
|
990
|
-
hasText: "确认发布"
|
|
2375
|
+
hasText: params.settingInfo.timer ? "定时发布" : "确认发布"
|
|
991
2376
|
}).waitFor({
|
|
992
2377
|
state: "visible"
|
|
993
2378
|
});
|
|
994
2379
|
await page.waitForTimeout(200);
|
|
995
2380
|
await page.locator(".publish-footer button").filter({
|
|
996
|
-
hasText: "确认发布"
|
|
2381
|
+
hasText: params.settingInfo.timer ? "定时发布" : "确认发布"
|
|
997
2382
|
}).click();
|
|
998
2383
|
}
|
|
999
2384
|
await page.close();
|
|
1000
|
-
return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)(articleId);
|
|
2385
|
+
return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)(articleId, "publish" === params.saveType ? "发布成功" : "保存草稿成功");
|
|
1001
2386
|
};
|
|
1002
2387
|
const COVER_TYPE = {
|
|
1003
2388
|
no: 1,
|
|
@@ -1010,6 +2395,106 @@ const toutiaoPublish = async (task, params)=>{
|
|
|
1010
2395
|
if ("mockApi" === params.actionType) return mock_mockAction(task, params);
|
|
1011
2396
|
return executeAction(mock_mockAction, rpa_rpaAction)(task, params);
|
|
1012
2397
|
};
|
|
2398
|
+
const TTFansExport = async (_task, params)=>{
|
|
2399
|
+
const http = new Http({
|
|
2400
|
+
headers: {
|
|
2401
|
+
cookie: params.cookies.map((it)=>`${it.name}=${it.value}`).join(";"),
|
|
2402
|
+
referer: "https://mp.toutiao.com/profile_v4/graphic/publish"
|
|
2403
|
+
}
|
|
2404
|
+
});
|
|
2405
|
+
try {
|
|
2406
|
+
const res = await http.api({
|
|
2407
|
+
method: "get",
|
|
2408
|
+
url: "https://mp.toutiao.com/mp/agw/creator_center/user_info?app_id=1231",
|
|
2409
|
+
params: {
|
|
2410
|
+
app_id: 1231
|
|
2411
|
+
}
|
|
2412
|
+
});
|
|
2413
|
+
return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)(0 === res.code ? {
|
|
2414
|
+
fans_count: res.total_fans_count
|
|
2415
|
+
} : {
|
|
2416
|
+
fans_count: null
|
|
2417
|
+
}, "获取粉丝数成功!");
|
|
2418
|
+
} catch (error) {
|
|
2419
|
+
return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)({
|
|
2420
|
+
fans_count: null
|
|
2421
|
+
}, "获取粉丝数失败,请检查登陆有效性!");
|
|
2422
|
+
}
|
|
2423
|
+
};
|
|
2424
|
+
const XhsFansExport = async (_task, params)=>{
|
|
2425
|
+
const http = new Http({
|
|
2426
|
+
headers: {
|
|
2427
|
+
cookie: params.cookies.map((it)=>`${it.name}=${it.value}`).join(";"),
|
|
2428
|
+
referer: "https://creator.xiaohongshu.com/new/home?source=official"
|
|
2429
|
+
}
|
|
2430
|
+
});
|
|
2431
|
+
try {
|
|
2432
|
+
const res = await http.api({
|
|
2433
|
+
method: "get",
|
|
2434
|
+
url: "https://creator.xiaohongshu.com/api/galaxy/creator/home/personal_info"
|
|
2435
|
+
});
|
|
2436
|
+
return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)(0 === res.result ? {
|
|
2437
|
+
fans_count: res.data.fans_count
|
|
2438
|
+
} : {
|
|
2439
|
+
fans_count: null
|
|
2440
|
+
}, "获取粉丝数成功!");
|
|
2441
|
+
} catch (error) {
|
|
2442
|
+
return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)({
|
|
2443
|
+
fans_count: null
|
|
2444
|
+
}, "获取粉丝数失败,请检查登陆有效性!");
|
|
2445
|
+
}
|
|
2446
|
+
};
|
|
2447
|
+
const WxFansExport = async (_task, params)=>{
|
|
2448
|
+
const http = new Http({
|
|
2449
|
+
headers: {
|
|
2450
|
+
cookie: params.cookies.map((it)=>`${it.name}=${it.value}`).join(";")
|
|
2451
|
+
}
|
|
2452
|
+
});
|
|
2453
|
+
try {
|
|
2454
|
+
const htmlStr = await http.api({
|
|
2455
|
+
method: "get",
|
|
2456
|
+
url: "https://mp.weixin.qq.com/cgi-bin/home",
|
|
2457
|
+
params: {
|
|
2458
|
+
t: "home/index",
|
|
2459
|
+
token: params.token,
|
|
2460
|
+
lang: "zh_CN"
|
|
2461
|
+
}
|
|
2462
|
+
});
|
|
2463
|
+
const match = htmlStr.match(/总用户数[\s\S]*?<mp-thousandth>(\d+)<\/mp-thousandth>/);
|
|
2464
|
+
return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)(match ? {
|
|
2465
|
+
fans_count: Number(match[1])
|
|
2466
|
+
} : {
|
|
2467
|
+
fans_count: null
|
|
2468
|
+
}, "获取粉丝数成功!");
|
|
2469
|
+
} catch (error) {
|
|
2470
|
+
return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)({
|
|
2471
|
+
fans_count: null
|
|
2472
|
+
}, "获取粉丝数失败,请检查登陆有效性!");
|
|
2473
|
+
}
|
|
2474
|
+
};
|
|
2475
|
+
const BjhFansExport = async (_task, params)=>{
|
|
2476
|
+
const http = new Http({
|
|
2477
|
+
headers: {
|
|
2478
|
+
cookie: params.cookies.map((it)=>`${it.name}=${it.value}`).join(";"),
|
|
2479
|
+
referer: "https://baijiahao.baidu.com/builder/rc/home"
|
|
2480
|
+
}
|
|
2481
|
+
});
|
|
2482
|
+
try {
|
|
2483
|
+
const res = await http.api({
|
|
2484
|
+
method: "get",
|
|
2485
|
+
url: "https://baijiahao.baidu.com/cms-ui/rights/growth/get_info"
|
|
2486
|
+
});
|
|
2487
|
+
return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)(0 === res.errno ? {
|
|
2488
|
+
fans_count: res.data.total_fans
|
|
2489
|
+
} : {
|
|
2490
|
+
fans_count: null
|
|
2491
|
+
}, "获取粉丝数成功!");
|
|
2492
|
+
} catch (error) {
|
|
2493
|
+
return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)({
|
|
2494
|
+
fans_count: null
|
|
2495
|
+
}, "获取粉丝数失败,请检查登陆有效性!");
|
|
2496
|
+
}
|
|
2497
|
+
};
|
|
1013
2498
|
const weitoutiaoPublish_mock_mockAction = async (task, params)=>{
|
|
1014
2499
|
const tmpCachePath = task.getTmpPath();
|
|
1015
2500
|
const http = new Http({
|
|
@@ -1179,7 +2664,7 @@ const userTypeMap = {
|
|
|
1179
2664
|
已关注的用户: 2,
|
|
1180
2665
|
已关注7天及以上的用户: 3
|
|
1181
2666
|
};
|
|
1182
|
-
const
|
|
2667
|
+
const weixinPublish_mock_generatorFormData = (data)=>{
|
|
1183
2668
|
const formData = new URLSearchParams();
|
|
1184
2669
|
for (const [key, value] of Object.entries(data))formData.append(key, String(value));
|
|
1185
2670
|
return formData.toString();
|
|
@@ -1195,7 +2680,7 @@ const checkCopyrightStat = async (http, params, data)=>{
|
|
|
1195
2680
|
token: params.token,
|
|
1196
2681
|
lang: "zh_CN"
|
|
1197
2682
|
},
|
|
1198
|
-
data:
|
|
2683
|
+
data: weixinPublish_mock_generatorFormData(data)
|
|
1199
2684
|
});
|
|
1200
2685
|
} catch (error) {
|
|
1201
2686
|
resData = error?.data;
|
|
@@ -1309,7 +2794,7 @@ const weixinPublish_mock_mockAction = async (task, params)=>{
|
|
|
1309
2794
|
params: {
|
|
1310
2795
|
action: "searchacct"
|
|
1311
2796
|
},
|
|
1312
|
-
data:
|
|
2797
|
+
data: weixinPublish_mock_generatorFormData({
|
|
1313
2798
|
lang: "zh_CN",
|
|
1314
2799
|
f: "json",
|
|
1315
2800
|
ajax: 1,
|
|
@@ -1438,7 +2923,7 @@ const weixinPublish_mock_mockAction = async (task, params)=>{
|
|
|
1438
2923
|
params: {
|
|
1439
2924
|
action: 'addautoreply'
|
|
1440
2925
|
},
|
|
1441
|
-
data:
|
|
2926
|
+
data: weixinPublish_mock_generatorFormData({
|
|
1442
2927
|
type: 1,
|
|
1443
2928
|
fingerprint,
|
|
1444
2929
|
token: params.token,
|
|
@@ -1560,7 +3045,7 @@ const weixinPublish_mock_mockAction = async (task, params)=>{
|
|
|
1560
3045
|
type: 77,
|
|
1561
3046
|
lang: "zh_CN"
|
|
1562
3047
|
},
|
|
1563
|
-
data:
|
|
3048
|
+
data: weixinPublish_mock_generatorFormData(draftData),
|
|
1564
3049
|
defaultErrorMsg: "创建草稿失败,请稍后重试发布。"
|
|
1565
3050
|
});
|
|
1566
3051
|
if ("draft" === params.saveType) return {
|
|
@@ -1593,7 +3078,7 @@ const weixinPublish_mock_mockAction = async (task, params)=>{
|
|
|
1593
3078
|
lang: "zh_CN",
|
|
1594
3079
|
token: params.token
|
|
1595
3080
|
},
|
|
1596
|
-
data:
|
|
3081
|
+
data: weixinPublish_mock_generatorFormData({
|
|
1597
3082
|
token: params.token,
|
|
1598
3083
|
lang: "zh_CN",
|
|
1599
3084
|
f: "json",
|
|
@@ -1624,7 +3109,7 @@ const weixinPublish_mock_mockAction = async (task, params)=>{
|
|
|
1624
3109
|
token: params.token,
|
|
1625
3110
|
lang: "zh_CN"
|
|
1626
3111
|
},
|
|
1627
|
-
data:
|
|
3112
|
+
data: weixinPublish_mock_generatorFormData({
|
|
1628
3113
|
appmsgid: appMsgId,
|
|
1629
3114
|
fingerprint,
|
|
1630
3115
|
token: params.token,
|
|
@@ -1636,7 +3121,7 @@ const weixinPublish_mock_mockAction = async (task, params)=>{
|
|
|
1636
3121
|
await http.api({
|
|
1637
3122
|
method: "post",
|
|
1638
3123
|
url: "https://mp.weixin.qq.com/cgi-bin/masssend?action=check_same_material",
|
|
1639
|
-
data:
|
|
3124
|
+
data: weixinPublish_mock_generatorFormData({
|
|
1640
3125
|
msgid: appMsgId,
|
|
1641
3126
|
fingerprint,
|
|
1642
3127
|
token: params.token,
|
|
@@ -1675,7 +3160,7 @@ const weixinPublish_mock_mockAction = async (task, params)=>{
|
|
|
1675
3160
|
token: params.token,
|
|
1676
3161
|
lang: "zh_CN"
|
|
1677
3162
|
},
|
|
1678
|
-
data:
|
|
3163
|
+
data: weixinPublish_mock_generatorFormData({
|
|
1679
3164
|
appmsg_id: appMsgId,
|
|
1680
3165
|
fingerprint,
|
|
1681
3166
|
token: params.token,
|
|
@@ -1683,7 +3168,7 @@ const weixinPublish_mock_mockAction = async (task, params)=>{
|
|
|
1683
3168
|
f: "json",
|
|
1684
3169
|
ajax: 1,
|
|
1685
3170
|
is_release_publish_page: params.masssend ? 0 : 1,
|
|
1686
|
-
send_time: 0,
|
|
3171
|
+
send_time: params.settingInfo.timer ? params.settingInfo.timer : 0,
|
|
1687
3172
|
random: Math.random().toString()
|
|
1688
3173
|
})
|
|
1689
3174
|
});
|
|
@@ -1694,7 +3179,7 @@ const weixinPublish_mock_mockAction = async (task, params)=>{
|
|
|
1694
3179
|
params: {
|
|
1695
3180
|
action: "check_music"
|
|
1696
3181
|
},
|
|
1697
|
-
data:
|
|
3182
|
+
data: weixinPublish_mock_generatorFormData({
|
|
1698
3183
|
appmsgid: appMsgId,
|
|
1699
3184
|
masssend_check: 1,
|
|
1700
3185
|
fingerprint,
|
|
@@ -1714,7 +3199,7 @@ const weixinPublish_mock_mockAction = async (task, params)=>{
|
|
|
1714
3199
|
lang: "zh_CN",
|
|
1715
3200
|
1: 1
|
|
1716
3201
|
},
|
|
1717
|
-
data:
|
|
3202
|
+
data: weixinPublish_mock_generatorFormData({
|
|
1718
3203
|
token: params.token,
|
|
1719
3204
|
lang: "zh_CN",
|
|
1720
3205
|
f: "json",
|
|
@@ -1734,7 +3219,7 @@ const weixinPublish_mock_mockAction = async (task, params)=>{
|
|
|
1734
3219
|
lang: "zh_CN",
|
|
1735
3220
|
1: 1
|
|
1736
3221
|
},
|
|
1737
|
-
data:
|
|
3222
|
+
data: weixinPublish_mock_generatorFormData({
|
|
1738
3223
|
token: params.token,
|
|
1739
3224
|
lang: "zh_CN",
|
|
1740
3225
|
f: "json",
|
|
@@ -1766,6 +3251,7 @@ const weixinPublish_mock_mockAction = async (task, params)=>{
|
|
|
1766
3251
|
ticket: getTicketResult.ticket,
|
|
1767
3252
|
uuid,
|
|
1768
3253
|
msgid: operation_seq,
|
|
3254
|
+
open_email: !!params.settingInfo.timer,
|
|
1769
3255
|
...params.masssend ? {} : {
|
|
1770
3256
|
publish_type: 1
|
|
1771
3257
|
}
|
|
@@ -1788,7 +3274,7 @@ const weixinPublish_mock_mockAction = async (task, params)=>{
|
|
|
1788
3274
|
lang: "zh_CN",
|
|
1789
3275
|
timespam: Date.now()
|
|
1790
3276
|
},
|
|
1791
|
-
data:
|
|
3277
|
+
data: weixinPublish_mock_generatorFormData({
|
|
1792
3278
|
token: params.token,
|
|
1793
3279
|
lang: "zh_CN",
|
|
1794
3280
|
f: "json",
|
|
@@ -1818,7 +3304,7 @@ const weixinPublish_mock_mockAction = async (task, params)=>{
|
|
|
1818
3304
|
lang: "zh_CN",
|
|
1819
3305
|
1: 1
|
|
1820
3306
|
},
|
|
1821
|
-
data:
|
|
3307
|
+
data: weixinPublish_mock_generatorFormData({
|
|
1822
3308
|
token: params.token,
|
|
1823
3309
|
lang: "zh_CN",
|
|
1824
3310
|
f: "json",
|
|
@@ -1836,11 +3322,15 @@ const weixinPublish_mock_mockAction = async (task, params)=>{
|
|
|
1836
3322
|
t: "ajax-response",
|
|
1837
3323
|
token: params.token,
|
|
1838
3324
|
lang: "zh_CN",
|
|
1839
|
-
...params.masssend ? {
|
|
3325
|
+
...params.masssend ? {
|
|
3326
|
+
...params.settingInfo.timer ? {
|
|
3327
|
+
action: "time_send"
|
|
3328
|
+
} : {}
|
|
3329
|
+
} : {
|
|
1840
3330
|
is_release_publish_page: 1
|
|
1841
3331
|
}
|
|
1842
3332
|
},
|
|
1843
|
-
data:
|
|
3333
|
+
data: weixinPublish_mock_generatorFormData({
|
|
1844
3334
|
token: params.token,
|
|
1845
3335
|
lang: "zh_CN",
|
|
1846
3336
|
f: "json",
|
|
@@ -1857,7 +3347,7 @@ const weixinPublish_mock_mockAction = async (task, params)=>{
|
|
|
1857
3347
|
country: "",
|
|
1858
3348
|
province: "",
|
|
1859
3349
|
city: "",
|
|
1860
|
-
send_time: "0",
|
|
3350
|
+
send_time: params.settingInfo.timer ? params.settingInfo.timer : "0",
|
|
1861
3351
|
type: "10",
|
|
1862
3352
|
share_page: "1",
|
|
1863
3353
|
synctxweibo: "0",
|
|
@@ -1874,7 +3364,7 @@ const weixinPublish_mock_mockAction = async (task, params)=>{
|
|
|
1874
3364
|
}),
|
|
1875
3365
|
defaultErrorMsg: params.masssend ? "文章群发异常,请尝试关闭群发或稍后重试。" : "文章发布异常,请稍后重试。"
|
|
1876
3366
|
});
|
|
1877
|
-
return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)(appMsgId, "微信公众号发布完成。");
|
|
3367
|
+
return (0, __WEBPACK_EXTERNAL_MODULE__iflyrpa_share_f7afdc8c__.success)(appMsgId, params.settingInfo.timer ? "微信公众号文章定时发布成功。" : "微信公众号发布完成。");
|
|
1878
3368
|
};
|
|
1879
3369
|
const waitQrcodeResultMaxTime = 2000 * scanRetryMaxCount;
|
|
1880
3370
|
const weixinPublish_rpa_rpaAction = async (task, params)=>{
|
|
@@ -2201,7 +3691,7 @@ const weixinPublish_rpa_rpaAction = async (task, params)=>{
|
|
|
2201
3691
|
await poperInstance.locator('.frm_radio_item label[for="not_recomment_0"]').click();
|
|
2202
3692
|
}
|
|
2203
3693
|
await page.waitForTimeout(1000);
|
|
2204
|
-
const articleId = await new Promise((resolve)=>{
|
|
3694
|
+
const articleId = await new Promise(async (resolve)=>{
|
|
2205
3695
|
const handleResponse = async (response)=>{
|
|
2206
3696
|
const url = response.url();
|
|
2207
3697
|
const query = parseUrlQueryString(url);
|
|
@@ -2213,7 +3703,34 @@ const weixinPublish_rpa_rpaAction = async (task, params)=>{
|
|
|
2213
3703
|
};
|
|
2214
3704
|
page.on("response", handleResponse);
|
|
2215
3705
|
page.locator("#editor_pannel #bottom_main #js_button_area #js_send button").click();
|
|
3706
|
+
await page.waitForTimeout(200);
|
|
3707
|
+
if (params.settingInfo.timer) {
|
|
3708
|
+
await page.locator(".mass-send .mass-send__td-setting", {
|
|
3709
|
+
hasText: "定时发表"
|
|
3710
|
+
}).locator(".weui-desktop-switch__box").check();
|
|
3711
|
+
let dateD = Number(TimeFormatter.format(params.settingInfo.timer, "d"));
|
|
3712
|
+
let nowD = Number(TimeFormatter.format(Date.now(), "d"));
|
|
3713
|
+
await page.locator(".mass-send__timer .weui-desktop-form__dropdown__dt").click();
|
|
3714
|
+
const dropMenu = page.locator(".mass-send__timer .weui-desktop-dropdown-menu").locator(".weui-desktop-dropdown__list-ele");
|
|
3715
|
+
await dropMenu.filter({
|
|
3716
|
+
hasText: dateD == nowD ? "今天" : dateD == nowD + 1 ? "明天" : TimeFormatter.format(params.settingInfo.timer, "M月d日")
|
|
3717
|
+
}).click();
|
|
3718
|
+
const timeDropMenu = page.locator(".mass-send__timer .weui-desktop-picker__time:visible");
|
|
3719
|
+
await timeDropMenu.locator(".weui-desktop-form__input").fill(TimeFormatter.format(params.settingInfo.timer, "hh:mm"));
|
|
3720
|
+
await timeDropMenu.locator("i.weui-desktop-icon__time").click();
|
|
3721
|
+
}
|
|
2216
3722
|
});
|
|
3723
|
+
await page.waitForTimeout(200);
|
|
3724
|
+
if (params.masssend) {
|
|
3725
|
+
const times = Number(await page.locator(".mass-send .multi-sent__notice_time").locator('div[style="display: none;"] div:not([style*="display: none"]) span').textContent());
|
|
3726
|
+
if (0 == times) return {
|
|
3727
|
+
code: 200,
|
|
3728
|
+
message: "今日群发次数用尽,请明天再试。",
|
|
3729
|
+
data: ""
|
|
3730
|
+
};
|
|
3731
|
+
await page.locator(".mass-send .mass_send__notify").locator(".weui-desktop-switch__box").check();
|
|
3732
|
+
} else await page.locator(".mass-send .mass_send__notify").locator(".weui-desktop-switch__box").uncheck();
|
|
3733
|
+
await page.waitForTimeout(200);
|
|
2217
3734
|
await page.waitForSelector('.new_mass_send_dialog .weui-desktop-dialog__wrp:not([style*="display: none"])', {
|
|
2218
3735
|
state: "visible"
|
|
2219
3736
|
});
|
|
@@ -2222,6 +3739,19 @@ const weixinPublish_rpa_rpaAction = async (task, params)=>{
|
|
|
2222
3739
|
state: "visible"
|
|
2223
3740
|
});
|
|
2224
3741
|
await page.locator(".double_check_dialog .weui-desktop-dialog .weui-desktop-dialog__ft button.weui-desktop-btn_primary").click();
|
|
3742
|
+
await page.waitForTimeout(2000);
|
|
3743
|
+
const originalCheckDialog = page.locator('div[data-transfer="true"][width\\.number="800"][height\\.number="800"] .weui-desktop-dialog__title');
|
|
3744
|
+
if (await originalCheckDialog.count() > 0) {
|
|
3745
|
+
if (await originalCheckDialog.textContent() === "原创校验") {
|
|
3746
|
+
const popMassend = page.locator('div[data-transfer="true"][width\\.number="800"][height\\.number="800"]');
|
|
3747
|
+
await popMassend.locator(".weui-desktop-btn_primary", {
|
|
3748
|
+
hasText: "下一步"
|
|
3749
|
+
}).click();
|
|
3750
|
+
await popMassend.locator(".weui-desktop-btn_primary", {
|
|
3751
|
+
hasText: "继续"
|
|
3752
|
+
}).click();
|
|
3753
|
+
}
|
|
3754
|
+
}
|
|
2225
3755
|
try {
|
|
2226
3756
|
const startTime = Date.now();
|
|
2227
3757
|
await new Promise(async (resolve, reject)=>{
|
|
@@ -2946,7 +4476,7 @@ const xiaohongshuPublish = async (task, params)=>{
|
|
|
2946
4476
|
return executeAction(xiaohongshuPublish_mock_mockAction, xiaohongshuPublish_rpa_rpaAction)(task, params);
|
|
2947
4477
|
};
|
|
2948
4478
|
var package_namespaceObject = {
|
|
2949
|
-
i8: "1.2.
|
|
4479
|
+
i8: "1.2.11"
|
|
2950
4480
|
};
|
|
2951
4481
|
class Action {
|
|
2952
4482
|
constructor(task){
|
|
@@ -2971,9 +4501,30 @@ class Action {
|
|
|
2971
4501
|
searchToutiaoTopicList(params) {
|
|
2972
4502
|
return this.bindTask(searchToutiaoTopicList, params);
|
|
2973
4503
|
}
|
|
4504
|
+
TTFansExport(params) {
|
|
4505
|
+
return this.bindTask(TTFansExport, params);
|
|
4506
|
+
}
|
|
4507
|
+
XhsFansExport(params) {
|
|
4508
|
+
return this.bindTask(XhsFansExport, params);
|
|
4509
|
+
}
|
|
4510
|
+
WxFansExport(params) {
|
|
4511
|
+
return this.bindTask(WxFansExport, params);
|
|
4512
|
+
}
|
|
4513
|
+
BjhFansExport(params) {
|
|
4514
|
+
return this.bindTask(BjhFansExport, params);
|
|
4515
|
+
}
|
|
4516
|
+
searchToutiaoUserID(params) {
|
|
4517
|
+
return this.bindTask(searchToutiaoUserInfo, params);
|
|
4518
|
+
}
|
|
4519
|
+
searchToutiaoLocation(params) {
|
|
4520
|
+
return this.bindTask(searchToutiaoLocation, params);
|
|
4521
|
+
}
|
|
2974
4522
|
getToutiaoConfig(params) {
|
|
2975
4523
|
return this.bindTask(getToutiaoConfig, params);
|
|
2976
4524
|
}
|
|
4525
|
+
getBaijiahaoConfig(params) {
|
|
4526
|
+
return this.bindTask(getBaijiahaoConfig, params);
|
|
4527
|
+
}
|
|
2977
4528
|
baijiahaoPublish(params) {
|
|
2978
4529
|
return this.bindTask(baijiahaoPublish, params);
|
|
2979
4530
|
}
|