@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/bundle.js
CHANGED
|
@@ -1818,6 +1818,1088 @@ var __webpack_modules__ = {
|
|
|
1818
1818
|
})
|
|
1819
1819
|
};
|
|
1820
1820
|
},
|
|
1821
|
+
"./src/utils/ttABEncrypt.js": function(module, __unused_webpack_exports, __webpack_require__) {
|
|
1822
|
+
module = __webpack_require__.nmd(module);
|
|
1823
|
+
const a0_0x45db08 = a0_0x4b0d;
|
|
1824
|
+
function a0_0x4b0d(_0x2bd218, _0x316d6) {
|
|
1825
|
+
const _0x165410 = a0_0x1654();
|
|
1826
|
+
return a0_0x4b0d = function(_0x4b0d73, _0x5794db) {
|
|
1827
|
+
_0x4b0d73 -= 0x84;
|
|
1828
|
+
let _0x1859e3 = _0x165410[_0x4b0d73];
|
|
1829
|
+
return _0x1859e3;
|
|
1830
|
+
}, a0_0x4b0d(_0x2bd218, _0x316d6);
|
|
1831
|
+
}
|
|
1832
|
+
(function(_0x1b2596, _0x16c0e0) {
|
|
1833
|
+
const _0x1227f1 = a0_0x4b0d, _0x46fb59 = _0x1b2596();
|
|
1834
|
+
while(true)try {
|
|
1835
|
+
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;
|
|
1836
|
+
if (_0x383dd4 === _0x16c0e0) break;
|
|
1837
|
+
_0x46fb59['push'](_0x46fb59['shift']());
|
|
1838
|
+
} catch (_0x4fc071) {
|
|
1839
|
+
_0x46fb59['push'](_0x46fb59['shift']());
|
|
1840
|
+
}
|
|
1841
|
+
})(a0_0x1654, 0x807f8);
|
|
1842
|
+
const Random = Math['random'](), Ts = Date['now'](), Sm3DoneTs = Ts + 0x30, xhrParaDoneTs = Ts + 0x109, xhrReqDoneTs = Ts + 0x10af0;
|
|
1843
|
+
function a0_0x1654() {
|
|
1844
|
+
const _0x46e031 = [
|
|
1845
|
+
'floor',
|
|
1846
|
+
'dhzx',
|
|
1847
|
+
'map',
|
|
1848
|
+
'_compress',
|
|
1849
|
+
'charCodeAt',
|
|
1850
|
+
'min',
|
|
1851
|
+
'invalid\x20j\x20for\x20constant\x20Tj',
|
|
1852
|
+
'reset',
|
|
1853
|
+
'662|856|1920|977|1920|977|1920|1080|Linux\x20x86_64',
|
|
1854
|
+
'6GqxJwW',
|
|
1855
|
+
'error',
|
|
1856
|
+
'1578UVUSyW',
|
|
1857
|
+
'fromCharCode',
|
|
1858
|
+
'replace',
|
|
1859
|
+
'17445vhaSjq',
|
|
1860
|
+
'isNaN',
|
|
1861
|
+
'toString',
|
|
1862
|
+
'push',
|
|
1863
|
+
'length',
|
|
1864
|
+
'write',
|
|
1865
|
+
'reduce',
|
|
1866
|
+
'charAt',
|
|
1867
|
+
'reg',
|
|
1868
|
+
'split',
|
|
1869
|
+
'2475936ufrFMu',
|
|
1870
|
+
'2137592VTpBSF',
|
|
1871
|
+
'join',
|
|
1872
|
+
'Dkdpgh2ZmsQB80/MfvV36XI1R45-WUAlEixNLwoqYTOPuzKFjJnry79HbGcaStCe',
|
|
1873
|
+
'exports',
|
|
1874
|
+
'fmUmtNjj1OfTrR716RULEyQaLPrOG1jpZz0/4Tyzr7/IbcOXs8PxVxHmrAIsIMm6IfTserj+JgCbPHUssUmedGKwCrIziubgSU0FT1MmqPOZXcPDGB3xUyq+vaM7HZyYgJtKyMR=',
|
|
1875
|
+
'48064qVwnFy',
|
|
1876
|
+
'concat',
|
|
1877
|
+
'prototype',
|
|
1878
|
+
'167524mhzzJE',
|
|
1879
|
+
'5968354Oyyfma',
|
|
1880
|
+
'chunk',
|
|
1881
|
+
'string',
|
|
1882
|
+
'forEach',
|
|
1883
|
+
'size',
|
|
1884
|
+
'slice',
|
|
1885
|
+
'sort',
|
|
1886
|
+
'9BjSPrC',
|
|
1887
|
+
'sum',
|
|
1888
|
+
'repeat',
|
|
1889
|
+
'splice',
|
|
1890
|
+
'239400JtRPVl'
|
|
1891
|
+
];
|
|
1892
|
+
a0_0x1654 = function() {
|
|
1893
|
+
return _0x46e031;
|
|
1894
|
+
};
|
|
1895
|
+
return a0_0x1654();
|
|
1896
|
+
}
|
|
1897
|
+
class SM3Hasher {
|
|
1898
|
+
constructor(){
|
|
1899
|
+
const _0x468533 = a0_0x4b0d;
|
|
1900
|
+
this[_0x468533(0xa8)] = new Array(0x8), this[_0x468533(0x87)] = [], this[_0x468533(0x8a)] = 0x0, this[_0x468533(0x99)]();
|
|
1901
|
+
}
|
|
1902
|
+
[a0_0x45db08(0x99)]() {
|
|
1903
|
+
const _0x11e792 = a0_0x45db08;
|
|
1904
|
+
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;
|
|
1905
|
+
}
|
|
1906
|
+
[a0_0x45db08(0xa5)](_0x22d1ef) {
|
|
1907
|
+
const _0x182388 = a0_0x45db08;
|
|
1908
|
+
var _0x2ded18 = _0x182388(0x88) == typeof _0x22d1ef ? function(_0x5e491d) {
|
|
1909
|
+
const _0x12d911 = _0x182388;
|
|
1910
|
+
var _0x5795ab = encodeURIComponent(_0x5e491d)[_0x12d911(0x9f)](/%([0-9A-F]{2})/g, function(_0x22d98b, _0x5659da) {
|
|
1911
|
+
const _0x357908 = _0x12d911;
|
|
1912
|
+
return String[_0x357908(0x9e)]('0x' + _0x5659da);
|
|
1913
|
+
}), _0x5c0d1c = new Array(_0x5795ab['length']);
|
|
1914
|
+
return Array[_0x12d911(0x84)][_0x12d911(0x89)]['call'](_0x5795ab, function(_0x2e8583, _0x28f42f) {
|
|
1915
|
+
const _0x4b2a85 = _0x12d911;
|
|
1916
|
+
_0x5c0d1c[_0x28f42f] = _0x2e8583[_0x4b2a85(0x96)](0x0);
|
|
1917
|
+
}), _0x5c0d1c;
|
|
1918
|
+
}(_0x22d1ef) : _0x22d1ef;
|
|
1919
|
+
this['size'] += _0x2ded18['length'];
|
|
1920
|
+
var _0xffe4ea = 0x40 - this[_0x182388(0x87)][_0x182388(0xa4)];
|
|
1921
|
+
if (_0x2ded18[_0x182388(0xa4)] < _0xffe4ea) this['chunk'] = this[_0x182388(0x87)][_0x182388(0xb1)](_0x2ded18);
|
|
1922
|
+
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;
|
|
1923
|
+
}
|
|
1924
|
+
[a0_0x45db08(0x8e)](_0x34ff8d, _0xecf9f6) {
|
|
1925
|
+
const _0x3ddb20 = a0_0x45db08;
|
|
1926
|
+
_0x34ff8d && (this[_0x3ddb20(0x99)](), this[_0x3ddb20(0xa5)](_0x34ff8d)), this['_fill']();
|
|
1927
|
+
for(var _0x28ac8a = 0x0; _0x28ac8a < this[_0x3ddb20(0x87)][_0x3ddb20(0xa4)]; _0x28ac8a += 0x40)this[_0x3ddb20(0x95)](this[_0x3ddb20(0x87)]['slice'](_0x28ac8a, _0x28ac8a + 0x40));
|
|
1928
|
+
var _0x117621, _0x335539, _0x450e58, _0x5b1ad8 = null;
|
|
1929
|
+
if ('hex' == _0xecf9f6) {
|
|
1930
|
+
_0x5b1ad8 = '';
|
|
1931
|
+
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);
|
|
1932
|
+
} else for(_0x5b1ad8 = new Array(0x20), _0x28ac8a = 0x0; _0x28ac8a < 0x8; _0x28ac8a++){
|
|
1933
|
+
var _0x46ad66 = this[_0x3ddb20(0xa8)][_0x28ac8a];
|
|
1934
|
+
_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;
|
|
1935
|
+
}
|
|
1936
|
+
return this[_0x3ddb20(0x99)](), _0x5b1ad8;
|
|
1937
|
+
}
|
|
1938
|
+
['_fill']() {
|
|
1939
|
+
const _0xa844a0 = a0_0x45db08;
|
|
1940
|
+
var _0x15bc36 = 0x8 * this[_0xa844a0(0x8a)], _0x4a32f3 = this['chunk'][_0xa844a0(0xa3)](0x80) % 0x40;
|
|
1941
|
+
for(0x40 - _0x4a32f3 < 0x8 && (_0x4a32f3 -= 0x40); _0x4a32f3 < 0x38; _0x4a32f3++)this[_0xa844a0(0x87)][_0xa844a0(0xa3)](0x0);
|
|
1942
|
+
for(var _0x36cc0b = 0x0; _0x36cc0b < 0x4; _0x36cc0b++){
|
|
1943
|
+
var _0xd7dcfe = Math[_0xa844a0(0x92)](_0x15bc36 / 0x100000000);
|
|
1944
|
+
this['chunk'][_0xa844a0(0xa3)](_0xd7dcfe >>> 0x8 * (0x3 - _0x36cc0b) & 0xff);
|
|
1945
|
+
}
|
|
1946
|
+
for(_0x36cc0b = 0x0; _0x36cc0b < 0x4; _0x36cc0b++)this[_0xa844a0(0x87)][_0xa844a0(0xa3)](_0x15bc36 >>> 0x8 * (0x3 - _0x36cc0b) & 0xff);
|
|
1947
|
+
}
|
|
1948
|
+
[a0_0x45db08(0x95)](_0x1e530c) {
|
|
1949
|
+
const _0x3c50af = a0_0x45db08;
|
|
1950
|
+
function _0x3da582(_0x14b06e, _0x4ec82e) {
|
|
1951
|
+
return (_0x14b06e << (_0x4ec82e %= 0x20) | _0x14b06e >>> 0x20 - _0x4ec82e) >>> 0x0;
|
|
1952
|
+
}
|
|
1953
|
+
function _0x489962(_0x5dd43e) {
|
|
1954
|
+
const _0x744660 = a0_0x4b0d;
|
|
1955
|
+
return 0x0 <= _0x5dd43e && _0x5dd43e < 0x10 ? 0x79cc4519 : 0x10 <= _0x5dd43e && _0x5dd43e < 0x40 ? 0x7a879d8a : void console[_0x744660(0x9c)](_0x744660(0x98));
|
|
1956
|
+
}
|
|
1957
|
+
function _0x197f71(_0x5e22dd, _0xfc800b, _0x1300f1, _0xed8891) {
|
|
1958
|
+
const _0x3414cb = a0_0x4b0d;
|
|
1959
|
+
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);
|
|
1960
|
+
}
|
|
1961
|
+
function _0x2f42fb(_0x326645, _0x2c63af, _0x558c0d, _0x4a902b) {
|
|
1962
|
+
const _0x493bba = a0_0x4b0d;
|
|
1963
|
+
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);
|
|
1964
|
+
}
|
|
1965
|
+
if (_0x1e530c[_0x3c50af(0xa4)] < 0x40) {
|
|
1966
|
+
console[_0x3c50af(0x9c)]('compress\x20error:\x20not\x20enough\x20data');
|
|
1967
|
+
return;
|
|
1968
|
+
}
|
|
1969
|
+
for(var _0x23a9bd = function(_0x7114f5) {
|
|
1970
|
+
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;
|
|
1971
|
+
for(var _0xe5328 = 0x10; _0xe5328 < 0x44; _0xe5328++){
|
|
1972
|
+
var _0x2b58f2 = _0x49cf1f[_0xe5328 - 0x10] ^ _0x49cf1f[_0xe5328 - 0x9] ^ _0x3da582(_0x49cf1f[_0xe5328 - 0x3], 0xf);
|
|
1973
|
+
_0x2b58f2 = _0x2b58f2 ^ _0x3da582(_0x2b58f2, 0xf) ^ _0x3da582(_0x2b58f2, 0x17), _0x49cf1f[_0xe5328] = (_0x2b58f2 ^ _0x3da582(_0x49cf1f[_0xe5328 - 0xd], 0x7) ^ _0x49cf1f[_0xe5328 - 0x6]) >>> 0x0;
|
|
1974
|
+
}
|
|
1975
|
+
for(_0xe5328 = 0x0; _0xe5328 < 0x40; _0xe5328++)_0x49cf1f[_0xe5328 + 0x44] = (_0x49cf1f[_0xe5328] ^ _0x49cf1f[_0xe5328 + 0x4]) >>> 0x0;
|
|
1976
|
+
return _0x49cf1f;
|
|
1977
|
+
}(_0x1e530c), _0x17c086 = this[_0x3c50af(0xa8)][_0x3c50af(0x8b)](0x0), _0x3621a2 = 0x0; _0x3621a2 < 0x40; _0x3621a2++){
|
|
1978
|
+
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]);
|
|
1979
|
+
_0x50d411 = (0xffffffff & (_0x50d411 = _0x50d411 + _0x17c086[0x3] + _0x3b42ff + _0x23a9bd[_0x3621a2 + 0x44])) >>> 0x0;
|
|
1980
|
+
var _0x910e21 = _0x2f42fb(_0x3621a2, _0x17c086[0x4], _0x17c086[0x5], _0x17c086[0x6]);
|
|
1981
|
+
_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;
|
|
1982
|
+
}
|
|
1983
|
+
for(var _0x459622 = 0x0; _0x459622 < 0x8; _0x459622++)this['reg'][_0x459622] = (this[_0x3c50af(0xa8)][_0x459622] ^ _0x17c086[_0x459622]) >>> 0x0;
|
|
1984
|
+
}
|
|
1985
|
+
}
|
|
1986
|
+
function EnvData2CharCode(_0x58cd97, _0x23e1e0, _0x3ca6b2) {
|
|
1987
|
+
const _0x56cb93 = a0_0x45db08;
|
|
1988
|
+
let _0x2d49d4 = 0xf0 * Random >> 0x0 > 0x6d ? (0xf0 * Random >> 0x0) + 0x2 : 0xf0 * Random >> 0x0, _0x3f2013 = 0xff * Random >> 0x0 & 0x4d | 178, _0x4b8ded = [
|
|
1989
|
+
0xffff * Random & 170 | 0x55 & [
|
|
1990
|
+
0x1,
|
|
1991
|
+
0x0,
|
|
1992
|
+
0x1,
|
|
1993
|
+
0xf
|
|
1994
|
+
][_0x56cb93(0x8b)](0x0, 0x2)[0x0],
|
|
1995
|
+
0xffff * Random & 85 | 0xaa & [
|
|
1996
|
+
0x1,
|
|
1997
|
+
0x0,
|
|
1998
|
+
0x1,
|
|
1999
|
+
0xf
|
|
2000
|
+
][_0x56cb93(0x8b)](0x0, 0x2)[0x0],
|
|
2001
|
+
0xffff * Random >> 0x8 & 0xaa | 0x55 & [
|
|
2002
|
+
0x1,
|
|
2003
|
+
0x0,
|
|
2004
|
+
0x1,
|
|
2005
|
+
0xf
|
|
2006
|
+
]['slice'](0x0, 0x2)[0x1],
|
|
2007
|
+
0xffff * Random >> 0x8 & 0x55 | 0xaa & [
|
|
2008
|
+
0x1,
|
|
2009
|
+
0x0,
|
|
2010
|
+
0x1,
|
|
2011
|
+
0xf
|
|
2012
|
+
][_0x56cb93(0x8b)](0x0, 0x2)[0x1],
|
|
2013
|
+
0xaa & _0x2d49d4 | 0x55 & [
|
|
2014
|
+
0x1,
|
|
2015
|
+
0x0,
|
|
2016
|
+
0x1,
|
|
2017
|
+
0xf
|
|
2018
|
+
][_0x56cb93(0x8b)](0x2, 0x4)[0x0],
|
|
2019
|
+
0x55 & _0x2d49d4 | 0xaa & [
|
|
2020
|
+
0x1,
|
|
2021
|
+
0x0,
|
|
2022
|
+
0x1,
|
|
2023
|
+
0xf
|
|
2024
|
+
][_0x56cb93(0x8b)](0x2, 0x4)[0x0],
|
|
2025
|
+
0xaa & _0x3f2013 | 0x55 & [
|
|
2026
|
+
0x1,
|
|
2027
|
+
0x0,
|
|
2028
|
+
0x1,
|
|
2029
|
+
0xf
|
|
2030
|
+
][_0x56cb93(0x8b)](0x2, 0x4)[0x1],
|
|
2031
|
+
0x55 & _0x3f2013 | 0xaa & [
|
|
2032
|
+
0x1,
|
|
2033
|
+
0x0,
|
|
2034
|
+
0x1,
|
|
2035
|
+
0xf
|
|
2036
|
+
][_0x56cb93(0x8b)](0x2, 0x4)[0x1]
|
|
2037
|
+
], _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));
|
|
2038
|
+
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);
|
|
2039
|
+
let _0x4139e6 = [
|
|
2040
|
+
0x29,
|
|
2041
|
+
(xhrReqDoneTs - 0x190e5788800) / 0x3e8 / 0x3c / 0x3c / 0x18 / 0xe >> 0x0,
|
|
2042
|
+
0x6,
|
|
2043
|
+
xhrParaDoneTs - Ts + 0x3 & 0xff,
|
|
2044
|
+
0xff & xhrParaDoneTs,
|
|
2045
|
+
xhrParaDoneTs >> 0x8 & 0xff,
|
|
2046
|
+
xhrParaDoneTs >> 0x10 & 0xff,
|
|
2047
|
+
xhrParaDoneTs >> 0x18 & 0xff,
|
|
2048
|
+
xhrParaDoneTs / 0x100 / 0x100 / 0x100 / 0x100 & 0xff,
|
|
2049
|
+
xhrParaDoneTs / 0x100 / 0x100 / 0x100 / 0x100 / 0x100 & 0xff,
|
|
2050
|
+
xhrParaDoneTs / 0x100 / 0x100 / 0x100 / 0x100 / 0x100 & 255,
|
|
2051
|
+
xhrParaDoneTs / 0x100 / 0x100 / 0x100 / 0x100 / 0x100 & 0,
|
|
2052
|
+
1,
|
|
2053
|
+
0,
|
|
2054
|
+
0xa,
|
|
2055
|
+
0x4,
|
|
2056
|
+
0x4,
|
|
2057
|
+
0x0,
|
|
2058
|
+
8,
|
|
2059
|
+
0,
|
|
2060
|
+
0,
|
|
2061
|
+
0,
|
|
2062
|
+
_0xe2d586[0x9],
|
|
2063
|
+
_0xe2d586[0x12],
|
|
2064
|
+
0x3,
|
|
2065
|
+
_0xe2d586[0x3],
|
|
2066
|
+
_0x571095[0xa],
|
|
2067
|
+
_0x571095[0x13],
|
|
2068
|
+
0x4,
|
|
2069
|
+
_0x571095[0x4],
|
|
2070
|
+
_0x4dabdb[0xb],
|
|
2071
|
+
_0x4dabdb[0x15],
|
|
2072
|
+
0x5,
|
|
2073
|
+
_0x4dabdb[0x5],
|
|
2074
|
+
0xff & Sm3DoneTs,
|
|
2075
|
+
Sm3DoneTs >> 0x8 & 0xff,
|
|
2076
|
+
Sm3DoneTs >> 0x10 & 0xff,
|
|
2077
|
+
Sm3DoneTs >> 0x18 & 0xff,
|
|
2078
|
+
Sm3DoneTs / 0x100 / 0x100 / 0x100 / 0x100 & 0xff,
|
|
2079
|
+
Sm3DoneTs / 0x100 / 0x100 / 0x100 / 0x100 / 0x100 & 0xff,
|
|
2080
|
+
0x3,
|
|
2081
|
+
41,
|
|
2082
|
+
101,
|
|
2083
|
+
0,
|
|
2084
|
+
0,
|
|
2085
|
+
207,
|
|
2086
|
+
4,
|
|
2087
|
+
0,
|
|
2088
|
+
0,
|
|
2089
|
+
_0x5bb315['length'],
|
|
2090
|
+
_0x5bb315['length'],
|
|
2091
|
+
0x0,
|
|
2092
|
+
_0x1cdc95[_0x56cb93(0xa4)],
|
|
2093
|
+
_0x1cdc95[_0x56cb93(0xa4)],
|
|
2094
|
+
0x0
|
|
2095
|
+
], _0x339170 = [
|
|
2096
|
+
_0x4139e6[0x9],
|
|
2097
|
+
_0x4139e6[0x12],
|
|
2098
|
+
_0x4139e6[0x1e],
|
|
2099
|
+
_0x4139e6[0x23],
|
|
2100
|
+
_0x4139e6[0x2f],
|
|
2101
|
+
_0x4139e6[0x4],
|
|
2102
|
+
_0x4139e6[0x2c],
|
|
2103
|
+
_0x4139e6[0x13],
|
|
2104
|
+
_0x4139e6[0xa],
|
|
2105
|
+
_0x4139e6[0x17],
|
|
2106
|
+
_0x4139e6[0xc],
|
|
2107
|
+
_0x4139e6[0x28],
|
|
2108
|
+
_0x4139e6[0x19],
|
|
2109
|
+
_0x4139e6[0x2a],
|
|
2110
|
+
_0x4139e6[0x3],
|
|
2111
|
+
_0x4139e6[0x16],
|
|
2112
|
+
_0x4139e6[0x26],
|
|
2113
|
+
_0x4139e6[0x15],
|
|
2114
|
+
_0x4139e6[0x5],
|
|
2115
|
+
_0x4139e6[0x2d],
|
|
2116
|
+
_0x4139e6[0x1],
|
|
2117
|
+
_0x4139e6[0x1d],
|
|
2118
|
+
_0x4139e6[0x6],
|
|
2119
|
+
_0x4139e6[0x2b],
|
|
2120
|
+
_0x4139e6[0x21],
|
|
2121
|
+
_0x4139e6[0xe],
|
|
2122
|
+
_0x4139e6[0x24],
|
|
2123
|
+
_0x4139e6[0x25],
|
|
2124
|
+
_0x4139e6[0x2],
|
|
2125
|
+
_0x4139e6[0x2e],
|
|
2126
|
+
_0x4139e6[0xf],
|
|
2127
|
+
_0x4139e6[0x30],
|
|
2128
|
+
_0x4139e6[0x1f],
|
|
2129
|
+
_0x4139e6[0x1a],
|
|
2130
|
+
_0x4139e6[0x10],
|
|
2131
|
+
_0x4139e6[0xd],
|
|
2132
|
+
_0x4139e6[0x8],
|
|
2133
|
+
_0x4139e6[0x29],
|
|
2134
|
+
_0x4139e6[0x1b],
|
|
2135
|
+
_0x4139e6[0x11],
|
|
2136
|
+
_0x4139e6[0x27],
|
|
2137
|
+
_0x4139e6[0x14],
|
|
2138
|
+
_0x4139e6[0xb],
|
|
2139
|
+
_0x4139e6[0x0],
|
|
2140
|
+
_0x4139e6[0x22],
|
|
2141
|
+
_0x4139e6[0x7],
|
|
2142
|
+
_0x4139e6[0x32],
|
|
2143
|
+
_0x4139e6[0x33],
|
|
2144
|
+
_0x4139e6[0x35],
|
|
2145
|
+
_0x4139e6[0x36]
|
|
2146
|
+
];
|
|
2147
|
+
function _0x56e1cd(_0x24b6d5, _0x196cf7) {
|
|
2148
|
+
const _0x2eb1f3 = _0x56cb93;
|
|
2149
|
+
return _0x196cf7[_0x2eb1f3(0x8c)]((_0x2171ba, _0x925e58)=>_0x925e58 - _0x2171ba)[_0x2eb1f3(0x89)]((_0x540dbd)=>{
|
|
2150
|
+
const _0x2fbb10 = _0x2eb1f3;
|
|
2151
|
+
_0x540dbd >= 0x0 && _0x540dbd < _0x24b6d5[_0x2fbb10(0xa4)] && _0x24b6d5[_0x2fbb10(0x90)](_0x540dbd, 0x1);
|
|
2152
|
+
}), _0x24b6d5;
|
|
2153
|
+
}
|
|
2154
|
+
let _0x41ebdd = _0x4b8ded[_0x56cb93(0xb1)](_0x56e1cd(_0x4139e6, [
|
|
2155
|
+
0x18,
|
|
2156
|
+
0x1c,
|
|
2157
|
+
0x20,
|
|
2158
|
+
0x31,
|
|
2159
|
+
0x34
|
|
2160
|
+
])), _0x42a240 = _0x41ebdd[_0x56cb93(0xa6)]((_0x49ec53, _0x3d9ba0)=>_0x49ec53 ^ _0x3d9ba0), _0xeaa831 = _0x339170['concat'](_0x5bb315, _0x1cdc95, _0x42a240), _0x477e24 = [], _0x3bd924 = 0x0;
|
|
2161
|
+
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;
|
|
2162
|
+
let _0x23c273 = _0x4b8ded[_0x56cb93(0xb1)](_0x477e24, _0xeaa831[_0x56cb93(0x8b)](_0x3bd924, _0xeaa831[_0x56cb93(0xa4)]));
|
|
2163
|
+
return _0x23c273[_0x56cb93(0x94)]((_0x4d13ab)=>String['fromCharCode'](_0x4d13ab))[_0x56cb93(0xac)]('');
|
|
2164
|
+
}
|
|
2165
|
+
function Base2Data(_0x348aa6) {
|
|
2166
|
+
const _0x2bc7c7 = a0_0x45db08;
|
|
2167
|
+
let _0x874207 = [
|
|
2168
|
+
0xffff * Random & 170 | 0x55 & [
|
|
2169
|
+
0x3,
|
|
2170
|
+
0x52
|
|
2171
|
+
][0x0],
|
|
2172
|
+
0xffff * Random & 85 | 0xaa & [
|
|
2173
|
+
0x3,
|
|
2174
|
+
0x52
|
|
2175
|
+
][0x0],
|
|
2176
|
+
0x28 * Random >> 0x0 & 0xaa | 0x55 & [
|
|
2177
|
+
0x3,
|
|
2178
|
+
0x52
|
|
2179
|
+
][0x1],
|
|
2180
|
+
0x28 * Random >> 0x0 & 0x55 | 0xaa & [
|
|
2181
|
+
0x3,
|
|
2182
|
+
0x52
|
|
2183
|
+
][0x1]
|
|
2184
|
+
][_0x2bc7c7(0x94)]((_0x224d00)=>{
|
|
2185
|
+
const _0x31697c = _0x2bc7c7;
|
|
2186
|
+
return String[_0x31697c(0x9e)](_0x224d00);
|
|
2187
|
+
})[_0x2bc7c7(0xac)](''), _0x235e4f = [
|
|
2188
|
+
0xff,
|
|
2189
|
+
0xfe,
|
|
2190
|
+
0xfd,
|
|
2191
|
+
0xfc,
|
|
2192
|
+
0xfb,
|
|
2193
|
+
0xfa,
|
|
2194
|
+
0xf9,
|
|
2195
|
+
0xf8,
|
|
2196
|
+
0xf7,
|
|
2197
|
+
0xf6,
|
|
2198
|
+
0xf5,
|
|
2199
|
+
0xf4,
|
|
2200
|
+
0xf3,
|
|
2201
|
+
0xf2,
|
|
2202
|
+
0xf1,
|
|
2203
|
+
0xf0,
|
|
2204
|
+
0xef,
|
|
2205
|
+
0xee,
|
|
2206
|
+
0xed,
|
|
2207
|
+
0xec,
|
|
2208
|
+
0xeb,
|
|
2209
|
+
0xea,
|
|
2210
|
+
0xe9,
|
|
2211
|
+
0xe8,
|
|
2212
|
+
0xe7,
|
|
2213
|
+
0xe6,
|
|
2214
|
+
0xe5,
|
|
2215
|
+
0xe4,
|
|
2216
|
+
0xe3,
|
|
2217
|
+
0xe2,
|
|
2218
|
+
0xe1,
|
|
2219
|
+
0xe0,
|
|
2220
|
+
0xdf,
|
|
2221
|
+
0xde,
|
|
2222
|
+
0xdd,
|
|
2223
|
+
0xdc,
|
|
2224
|
+
0xdb,
|
|
2225
|
+
0xda,
|
|
2226
|
+
0xd9,
|
|
2227
|
+
0xd8,
|
|
2228
|
+
0xd7,
|
|
2229
|
+
0xd6,
|
|
2230
|
+
0xd5,
|
|
2231
|
+
0xd4,
|
|
2232
|
+
0xd3,
|
|
2233
|
+
0xd2,
|
|
2234
|
+
0xd1,
|
|
2235
|
+
0xd0,
|
|
2236
|
+
0xcf,
|
|
2237
|
+
0xce,
|
|
2238
|
+
0xcd,
|
|
2239
|
+
0xcc,
|
|
2240
|
+
0xcb,
|
|
2241
|
+
0xca,
|
|
2242
|
+
0xc9,
|
|
2243
|
+
0xc8,
|
|
2244
|
+
0xc7,
|
|
2245
|
+
0xc6,
|
|
2246
|
+
0xc5,
|
|
2247
|
+
0xc4,
|
|
2248
|
+
0xc3,
|
|
2249
|
+
0xc2,
|
|
2250
|
+
0xc1,
|
|
2251
|
+
0xc0,
|
|
2252
|
+
0xbf,
|
|
2253
|
+
0xbe,
|
|
2254
|
+
0xbd,
|
|
2255
|
+
0xbc,
|
|
2256
|
+
0xbb,
|
|
2257
|
+
0xba,
|
|
2258
|
+
0xb9,
|
|
2259
|
+
0xb8,
|
|
2260
|
+
0xb7,
|
|
2261
|
+
0xb6,
|
|
2262
|
+
0xb5,
|
|
2263
|
+
0xb4,
|
|
2264
|
+
0xb3,
|
|
2265
|
+
0xb2,
|
|
2266
|
+
0xb1,
|
|
2267
|
+
0xb0,
|
|
2268
|
+
0xaf,
|
|
2269
|
+
0xae,
|
|
2270
|
+
0xad,
|
|
2271
|
+
0xac,
|
|
2272
|
+
0xab,
|
|
2273
|
+
0xaa,
|
|
2274
|
+
0xa9,
|
|
2275
|
+
0xa8,
|
|
2276
|
+
0xa7,
|
|
2277
|
+
0xa6,
|
|
2278
|
+
0xa5,
|
|
2279
|
+
0xa4,
|
|
2280
|
+
0xa3,
|
|
2281
|
+
0xa2,
|
|
2282
|
+
0xa1,
|
|
2283
|
+
0xa0,
|
|
2284
|
+
0x9f,
|
|
2285
|
+
0x9e,
|
|
2286
|
+
0x9d,
|
|
2287
|
+
0x9c,
|
|
2288
|
+
0x9b,
|
|
2289
|
+
0x9a,
|
|
2290
|
+
0x99,
|
|
2291
|
+
0x98,
|
|
2292
|
+
0x97,
|
|
2293
|
+
0x96,
|
|
2294
|
+
0x95,
|
|
2295
|
+
0x94,
|
|
2296
|
+
0x93,
|
|
2297
|
+
0x92,
|
|
2298
|
+
0x91,
|
|
2299
|
+
0x90,
|
|
2300
|
+
0x8f,
|
|
2301
|
+
0x8e,
|
|
2302
|
+
0x8d,
|
|
2303
|
+
0x8c,
|
|
2304
|
+
0x8b,
|
|
2305
|
+
0x8a,
|
|
2306
|
+
0x89,
|
|
2307
|
+
0x88,
|
|
2308
|
+
0x87,
|
|
2309
|
+
0x86,
|
|
2310
|
+
0x85,
|
|
2311
|
+
0x84,
|
|
2312
|
+
0x83,
|
|
2313
|
+
0x82,
|
|
2314
|
+
0x81,
|
|
2315
|
+
0x80,
|
|
2316
|
+
0x7f,
|
|
2317
|
+
0x7e,
|
|
2318
|
+
0x7d,
|
|
2319
|
+
0x7c,
|
|
2320
|
+
0x7b,
|
|
2321
|
+
0x7a,
|
|
2322
|
+
0x79,
|
|
2323
|
+
0x78,
|
|
2324
|
+
0x77,
|
|
2325
|
+
0x76,
|
|
2326
|
+
0x75,
|
|
2327
|
+
0x74,
|
|
2328
|
+
0x73,
|
|
2329
|
+
0x72,
|
|
2330
|
+
0x71,
|
|
2331
|
+
0x70,
|
|
2332
|
+
0x6f,
|
|
2333
|
+
0x6e,
|
|
2334
|
+
0x6d,
|
|
2335
|
+
0x6c,
|
|
2336
|
+
0x6b,
|
|
2337
|
+
0x6a,
|
|
2338
|
+
0x69,
|
|
2339
|
+
0x68,
|
|
2340
|
+
0x67,
|
|
2341
|
+
0x66,
|
|
2342
|
+
0x65,
|
|
2343
|
+
0x64,
|
|
2344
|
+
0x63,
|
|
2345
|
+
0x62,
|
|
2346
|
+
0x61,
|
|
2347
|
+
0x60,
|
|
2348
|
+
0x5f,
|
|
2349
|
+
0x5e,
|
|
2350
|
+
0x5d,
|
|
2351
|
+
0x5c,
|
|
2352
|
+
0x5b,
|
|
2353
|
+
0x5a,
|
|
2354
|
+
0x59,
|
|
2355
|
+
0x58,
|
|
2356
|
+
0x57,
|
|
2357
|
+
0x56,
|
|
2358
|
+
0x55,
|
|
2359
|
+
0x54,
|
|
2360
|
+
0x53,
|
|
2361
|
+
0x52,
|
|
2362
|
+
0x51,
|
|
2363
|
+
0x50,
|
|
2364
|
+
0x4f,
|
|
2365
|
+
0x4e,
|
|
2366
|
+
0x4d,
|
|
2367
|
+
0x4c,
|
|
2368
|
+
0x4b,
|
|
2369
|
+
0x4a,
|
|
2370
|
+
0x49,
|
|
2371
|
+
0x48,
|
|
2372
|
+
0x47,
|
|
2373
|
+
0x46,
|
|
2374
|
+
0x45,
|
|
2375
|
+
0x44,
|
|
2376
|
+
0x43,
|
|
2377
|
+
0x42,
|
|
2378
|
+
0x41,
|
|
2379
|
+
0x40,
|
|
2380
|
+
0x3f,
|
|
2381
|
+
0x3e,
|
|
2382
|
+
0x3d,
|
|
2383
|
+
0x3c,
|
|
2384
|
+
0x3b,
|
|
2385
|
+
0x3a,
|
|
2386
|
+
0x39,
|
|
2387
|
+
0x38,
|
|
2388
|
+
0x37,
|
|
2389
|
+
0x36,
|
|
2390
|
+
0x35,
|
|
2391
|
+
0x34,
|
|
2392
|
+
0x33,
|
|
2393
|
+
0x32,
|
|
2394
|
+
0x31,
|
|
2395
|
+
0x30,
|
|
2396
|
+
0x2f,
|
|
2397
|
+
0x2e,
|
|
2398
|
+
0x2d,
|
|
2399
|
+
0x2c,
|
|
2400
|
+
0x2b,
|
|
2401
|
+
0x2a,
|
|
2402
|
+
0x29,
|
|
2403
|
+
0x28,
|
|
2404
|
+
0x27,
|
|
2405
|
+
0x26,
|
|
2406
|
+
0x25,
|
|
2407
|
+
0x24,
|
|
2408
|
+
0x23,
|
|
2409
|
+
0x22,
|
|
2410
|
+
0x21,
|
|
2411
|
+
0x20,
|
|
2412
|
+
0x1f,
|
|
2413
|
+
0x1e,
|
|
2414
|
+
0x1d,
|
|
2415
|
+
0x1c,
|
|
2416
|
+
0x1b,
|
|
2417
|
+
0x1a,
|
|
2418
|
+
0x19,
|
|
2419
|
+
0x18,
|
|
2420
|
+
0x17,
|
|
2421
|
+
0x16,
|
|
2422
|
+
0x15,
|
|
2423
|
+
0x14,
|
|
2424
|
+
0x13,
|
|
2425
|
+
0x12,
|
|
2426
|
+
0x11,
|
|
2427
|
+
0x10,
|
|
2428
|
+
0xf,
|
|
2429
|
+
0xe,
|
|
2430
|
+
0xd,
|
|
2431
|
+
0xc,
|
|
2432
|
+
0xb,
|
|
2433
|
+
0xa,
|
|
2434
|
+
0x9,
|
|
2435
|
+
0x8,
|
|
2436
|
+
0x7,
|
|
2437
|
+
0x6,
|
|
2438
|
+
0x5,
|
|
2439
|
+
0x4,
|
|
2440
|
+
0x3,
|
|
2441
|
+
0x2,
|
|
2442
|
+
0x1,
|
|
2443
|
+
0x0
|
|
2444
|
+
];
|
|
2445
|
+
const _0x29dde1 = 'Ó'[_0x2bc7c7(0x96)](0x0);
|
|
2446
|
+
let _0x4a74f1 = 0x0;
|
|
2447
|
+
for(let _0xef36c2 = 0x0; _0xef36c2 < _0x235e4f[_0x2bc7c7(0xa4)]; _0xef36c2++){
|
|
2448
|
+
let _0x4120e4 = _0x235e4f[_0xef36c2];
|
|
2449
|
+
_0x4a74f1 = (_0x4a74f1 * _0x4120e4 + _0x4a74f1 + _0x29dde1) % 0x100, [_0x235e4f[_0xef36c2], _0x235e4f[_0x4a74f1]] = [
|
|
2450
|
+
_0x235e4f[_0x4a74f1],
|
|
2451
|
+
_0x235e4f[_0xef36c2]
|
|
2452
|
+
];
|
|
2453
|
+
}
|
|
2454
|
+
let _0x39cb62 = 0x0, _0x5cbaf6 = '';
|
|
2455
|
+
for(let _0x29a672 = 0x0; _0x29a672 < _0x348aa6[_0x2bc7c7(0xa4)]; _0x29a672++){
|
|
2456
|
+
let _0x96c5ae = _0x348aa6[_0x2bc7c7(0x96)](_0x29a672), _0x46c34b = _0x29a672 + 0x1, _0x5d4cb4 = _0x235e4f[_0x46c34b];
|
|
2457
|
+
[_0x235e4f[_0x46c34b], _0x235e4f[(_0x39cb62 + _0x5d4cb4) % 0x100]] = [
|
|
2458
|
+
_0x235e4f[(_0x39cb62 + _0x5d4cb4) % 0x100],
|
|
2459
|
+
_0x235e4f[_0x46c34b]
|
|
2460
|
+
];
|
|
2461
|
+
let _0x506f4f = _0x235e4f[(_0x235e4f[_0x46c34b] + _0x5d4cb4) % 0x100];
|
|
2462
|
+
_0x39cb62 = (_0x39cb62 + _0x5d4cb4) % 0x100, _0x5cbaf6 += String['fromCharCode'](_0x96c5ae ^ _0x506f4f);
|
|
2463
|
+
}
|
|
2464
|
+
return _0x874207 + _0x5cbaf6;
|
|
2465
|
+
}
|
|
2466
|
+
function Data2A_B(_0x19ca6d) {
|
|
2467
|
+
const _0x5d8d72 = a0_0x45db08;
|
|
2468
|
+
let _0x225e7d = _0x5d8d72(0xad), _0x4f0a28 = '', _0x251d62 = [
|
|
2469
|
+
0x3e,
|
|
2470
|
+
0x12a,
|
|
2471
|
+
0x10,
|
|
2472
|
+
0x0,
|
|
2473
|
+
0x4,
|
|
2474
|
+
0x9,
|
|
2475
|
+
0x10,
|
|
2476
|
+
0x0,
|
|
2477
|
+
0x5,
|
|
2478
|
+
0x36,
|
|
2479
|
+
0x0,
|
|
2480
|
+
0x5,
|
|
2481
|
+
0x3e,
|
|
2482
|
+
0x12b,
|
|
2483
|
+
0x1a,
|
|
2484
|
+
0x12c,
|
|
2485
|
+
0x36,
|
|
2486
|
+
0x0,
|
|
2487
|
+
0x5,
|
|
2488
|
+
0x3e,
|
|
2489
|
+
0x12d,
|
|
2490
|
+
0x1a,
|
|
2491
|
+
0x12e,
|
|
2492
|
+
0x36,
|
|
2493
|
+
0x0,
|
|
2494
|
+
0x5,
|
|
2495
|
+
0x3e,
|
|
2496
|
+
0x12f,
|
|
2497
|
+
0x1a,
|
|
2498
|
+
0x130,
|
|
2499
|
+
0x36,
|
|
2500
|
+
0x0,
|
|
2501
|
+
0x5,
|
|
2502
|
+
0x3e,
|
|
2503
|
+
0x131,
|
|
2504
|
+
0x1a,
|
|
2505
|
+
0x10c,
|
|
2506
|
+
0x36,
|
|
2507
|
+
0x0,
|
|
2508
|
+
0x5,
|
|
2509
|
+
0x3e,
|
|
2510
|
+
0x132,
|
|
2511
|
+
0x1a,
|
|
2512
|
+
0x128,
|
|
2513
|
+
0x36,
|
|
2514
|
+
0x0,
|
|
2515
|
+
0x5,
|
|
2516
|
+
0x36,
|
|
2517
|
+
0x0,
|
|
2518
|
+
0x3,
|
|
2519
|
+
0x4c,
|
|
2520
|
+
0x10,
|
|
2521
|
+
0x0,
|
|
2522
|
+
0x6,
|
|
2523
|
+
0x3e,
|
|
2524
|
+
0x24,
|
|
2525
|
+
0x10,
|
|
2526
|
+
0x0,
|
|
2527
|
+
0x7,
|
|
2528
|
+
0x17,
|
|
2529
|
+
0x0,
|
|
2530
|
+
0x10,
|
|
2531
|
+
0x0,
|
|
2532
|
+
0x9,
|
|
2533
|
+
0x36,
|
|
2534
|
+
0x0,
|
|
2535
|
+
0x2,
|
|
2536
|
+
0x4,
|
|
2537
|
+
0x19,
|
|
2538
|
+
0x36,
|
|
2539
|
+
0x0,
|
|
2540
|
+
0x9,
|
|
2541
|
+
0x17,
|
|
2542
|
+
0x3,
|
|
2543
|
+
0x31,
|
|
2544
|
+
0x43,
|
|
2545
|
+
0xe,
|
|
2546
|
+
0x9f,
|
|
2547
|
+
0x36,
|
|
2548
|
+
0x0,
|
|
2549
|
+
0x2,
|
|
2550
|
+
0x16,
|
|
2551
|
+
0x4,
|
|
2552
|
+
0xf7,
|
|
2553
|
+
0x22,
|
|
2554
|
+
0x0,
|
|
2555
|
+
0x9,
|
|
2556
|
+
0x3c,
|
|
2557
|
+
0xc,
|
|
2558
|
+
0x1,
|
|
2559
|
+
0x17,
|
|
2560
|
+
0xff,
|
|
2561
|
+
0x32,
|
|
2562
|
+
0x17,
|
|
2563
|
+
0x10,
|
|
2564
|
+
0x1f,
|
|
2565
|
+
0x36,
|
|
2566
|
+
0x0,
|
|
2567
|
+
0x2,
|
|
2568
|
+
0x16,
|
|
2569
|
+
0x4,
|
|
2570
|
+
0xf7,
|
|
2571
|
+
0x22,
|
|
2572
|
+
0x0,
|
|
2573
|
+
0x9,
|
|
2574
|
+
0x3c,
|
|
2575
|
+
0xc,
|
|
2576
|
+
0x1,
|
|
2577
|
+
0x17,
|
|
2578
|
+
0xff,
|
|
2579
|
+
0x32,
|
|
2580
|
+
0x17,
|
|
2581
|
+
0x8,
|
|
2582
|
+
0x1f,
|
|
2583
|
+
0x20,
|
|
2584
|
+
0x36,
|
|
2585
|
+
0x0,
|
|
2586
|
+
0x2,
|
|
2587
|
+
0x16,
|
|
2588
|
+
0x4,
|
|
2589
|
+
0xf7,
|
|
2590
|
+
0x22,
|
|
2591
|
+
0x0,
|
|
2592
|
+
0x9,
|
|
2593
|
+
0x3c,
|
|
2594
|
+
0xc,
|
|
2595
|
+
0x1,
|
|
2596
|
+
0x17,
|
|
2597
|
+
0xff,
|
|
2598
|
+
0x32,
|
|
2599
|
+
0x20,
|
|
2600
|
+
0x10,
|
|
2601
|
+
0x0,
|
|
2602
|
+
0x8,
|
|
2603
|
+
0x36,
|
|
2604
|
+
0x0,
|
|
2605
|
+
0x7,
|
|
2606
|
+
0x36,
|
|
2607
|
+
0x0,
|
|
2608
|
+
0x6,
|
|
2609
|
+
0x16,
|
|
2610
|
+
0x4,
|
|
2611
|
+
0x67,
|
|
2612
|
+
0x36,
|
|
2613
|
+
0x0,
|
|
2614
|
+
0x8,
|
|
2615
|
+
0x17,
|
|
2616
|
+
0xfc0000,
|
|
2617
|
+
0x32,
|
|
2618
|
+
0x17,
|
|
2619
|
+
0x12,
|
|
2620
|
+
0x33,
|
|
2621
|
+
0xc,
|
|
2622
|
+
0x1,
|
|
2623
|
+
0x31,
|
|
2624
|
+
0x22,
|
|
2625
|
+
0x0,
|
|
2626
|
+
0x7,
|
|
2627
|
+
0x48,
|
|
2628
|
+
0x2b,
|
|
2629
|
+
0x36,
|
|
2630
|
+
0x0,
|
|
2631
|
+
0x7,
|
|
2632
|
+
0x36,
|
|
2633
|
+
0x0,
|
|
2634
|
+
0x6,
|
|
2635
|
+
0x16,
|
|
2636
|
+
0x4,
|
|
2637
|
+
0x67,
|
|
2638
|
+
0x36,
|
|
2639
|
+
0x0,
|
|
2640
|
+
0x8,
|
|
2641
|
+
0x17,
|
|
2642
|
+
0x3f000,
|
|
2643
|
+
0x32,
|
|
2644
|
+
0x17,
|
|
2645
|
+
0xc,
|
|
2646
|
+
0x33,
|
|
2647
|
+
0xc,
|
|
2648
|
+
0x1,
|
|
2649
|
+
0x31,
|
|
2650
|
+
0x22,
|
|
2651
|
+
0x0,
|
|
2652
|
+
0x7,
|
|
2653
|
+
0x48,
|
|
2654
|
+
0x2b,
|
|
2655
|
+
0x36,
|
|
2656
|
+
0x0,
|
|
2657
|
+
0x7,
|
|
2658
|
+
0x36,
|
|
2659
|
+
0x0,
|
|
2660
|
+
0x6,
|
|
2661
|
+
0x16,
|
|
2662
|
+
0x4,
|
|
2663
|
+
0x67,
|
|
2664
|
+
0x36,
|
|
2665
|
+
0x0,
|
|
2666
|
+
0x8,
|
|
2667
|
+
0x17,
|
|
2668
|
+
0xfc0,
|
|
2669
|
+
0x32,
|
|
2670
|
+
0x17,
|
|
2671
|
+
0x6,
|
|
2672
|
+
0x33,
|
|
2673
|
+
0xc,
|
|
2674
|
+
0x1,
|
|
2675
|
+
0x31,
|
|
2676
|
+
0x22,
|
|
2677
|
+
0x0,
|
|
2678
|
+
0x7,
|
|
2679
|
+
0x48,
|
|
2680
|
+
0x2b,
|
|
2681
|
+
0x36,
|
|
2682
|
+
0x0,
|
|
2683
|
+
0x7,
|
|
2684
|
+
0x36,
|
|
2685
|
+
0x0,
|
|
2686
|
+
0x6,
|
|
2687
|
+
0x16,
|
|
2688
|
+
0x4,
|
|
2689
|
+
0x67,
|
|
2690
|
+
0x36,
|
|
2691
|
+
0x0,
|
|
2692
|
+
0x8,
|
|
2693
|
+
0x17,
|
|
2694
|
+
0x3f,
|
|
2695
|
+
0x32,
|
|
2696
|
+
0xc,
|
|
2697
|
+
0x1,
|
|
2698
|
+
0x31,
|
|
2699
|
+
0x22,
|
|
2700
|
+
0x0,
|
|
2701
|
+
0x7,
|
|
2702
|
+
0x48,
|
|
2703
|
+
0x2b,
|
|
2704
|
+
0x12,
|
|
2705
|
+
-173,
|
|
2706
|
+
0x36,
|
|
2707
|
+
0x0,
|
|
2708
|
+
0x2,
|
|
2709
|
+
0x4,
|
|
2710
|
+
0x19,
|
|
2711
|
+
0x36,
|
|
2712
|
+
0x0,
|
|
2713
|
+
0x9,
|
|
2714
|
+
0x0,
|
|
2715
|
+
0x17,
|
|
2716
|
+
0x0,
|
|
2717
|
+
0x13,
|
|
2718
|
+
0xe,
|
|
2719
|
+
0xa0,
|
|
2720
|
+
0x36,
|
|
2721
|
+
0x0,
|
|
2722
|
+
0x2,
|
|
2723
|
+
0x16,
|
|
2724
|
+
0x4,
|
|
2725
|
+
0xf7,
|
|
2726
|
+
0x22,
|
|
2727
|
+
0x0,
|
|
2728
|
+
0x9,
|
|
2729
|
+
0x3c,
|
|
2730
|
+
0xc,
|
|
2731
|
+
0x1,
|
|
2732
|
+
0x17,
|
|
2733
|
+
0xff,
|
|
2734
|
+
0x32,
|
|
2735
|
+
0x17,
|
|
2736
|
+
0x10,
|
|
2737
|
+
0x1f,
|
|
2738
|
+
0x36,
|
|
2739
|
+
0x0,
|
|
2740
|
+
0x2,
|
|
2741
|
+
0x4,
|
|
2742
|
+
0x19,
|
|
2743
|
+
0x36,
|
|
2744
|
+
0x0,
|
|
2745
|
+
0x9,
|
|
2746
|
+
0x13,
|
|
2747
|
+
0xe,
|
|
2748
|
+
0x13,
|
|
2749
|
+
0x36,
|
|
2750
|
+
0x0,
|
|
2751
|
+
0x2,
|
|
2752
|
+
0x16,
|
|
2753
|
+
0x4,
|
|
2754
|
+
0xf7,
|
|
2755
|
+
0x36,
|
|
2756
|
+
0x0,
|
|
2757
|
+
0x9,
|
|
2758
|
+
0xc,
|
|
2759
|
+
0x1,
|
|
2760
|
+
0x17,
|
|
2761
|
+
0xff,
|
|
2762
|
+
0x32,
|
|
2763
|
+
0x17,
|
|
2764
|
+
0x8,
|
|
2765
|
+
0x1f,
|
|
2766
|
+
0x12,
|
|
2767
|
+
0x2,
|
|
2768
|
+
0x17,
|
|
2769
|
+
0x0,
|
|
2770
|
+
0x20,
|
|
2771
|
+
0x10,
|
|
2772
|
+
0x0,
|
|
2773
|
+
0x8,
|
|
2774
|
+
0x36,
|
|
2775
|
+
0x0,
|
|
2776
|
+
0x7,
|
|
2777
|
+
0x36,
|
|
2778
|
+
0x0,
|
|
2779
|
+
0x6,
|
|
2780
|
+
0x16,
|
|
2781
|
+
0x4,
|
|
2782
|
+
0x67,
|
|
2783
|
+
0x36,
|
|
2784
|
+
0x0,
|
|
2785
|
+
0x8,
|
|
2786
|
+
0x17,
|
|
2787
|
+
0xfc0000,
|
|
2788
|
+
0x32,
|
|
2789
|
+
0x17,
|
|
2790
|
+
0x12,
|
|
2791
|
+
0x33,
|
|
2792
|
+
0xc,
|
|
2793
|
+
0x1,
|
|
2794
|
+
0x31,
|
|
2795
|
+
0x22,
|
|
2796
|
+
0x0,
|
|
2797
|
+
0x7,
|
|
2798
|
+
0x48,
|
|
2799
|
+
0x2b,
|
|
2800
|
+
0x36,
|
|
2801
|
+
0x0,
|
|
2802
|
+
0x7,
|
|
2803
|
+
0x36,
|
|
2804
|
+
0x0,
|
|
2805
|
+
0x6,
|
|
2806
|
+
0x16,
|
|
2807
|
+
0x4,
|
|
2808
|
+
0x67,
|
|
2809
|
+
0x36,
|
|
2810
|
+
0x0,
|
|
2811
|
+
0x8,
|
|
2812
|
+
0x17,
|
|
2813
|
+
0x3f000,
|
|
2814
|
+
0x32,
|
|
2815
|
+
0x17,
|
|
2816
|
+
0xc,
|
|
2817
|
+
0x33,
|
|
2818
|
+
0xc,
|
|
2819
|
+
0x1,
|
|
2820
|
+
0x31,
|
|
2821
|
+
0x22,
|
|
2822
|
+
0x0,
|
|
2823
|
+
0x7,
|
|
2824
|
+
0x48,
|
|
2825
|
+
0x2b,
|
|
2826
|
+
0x36,
|
|
2827
|
+
0x0,
|
|
2828
|
+
0x7,
|
|
2829
|
+
0x36,
|
|
2830
|
+
0x0,
|
|
2831
|
+
0x2,
|
|
2832
|
+
0x4,
|
|
2833
|
+
0x19,
|
|
2834
|
+
0x36,
|
|
2835
|
+
0x0,
|
|
2836
|
+
0x9,
|
|
2837
|
+
0x13,
|
|
2838
|
+
0xe,
|
|
2839
|
+
0x13,
|
|
2840
|
+
0x36,
|
|
2841
|
+
0x0,
|
|
2842
|
+
0x6,
|
|
2843
|
+
0x16,
|
|
2844
|
+
0x4,
|
|
2845
|
+
0x67,
|
|
2846
|
+
0x36,
|
|
2847
|
+
0x0,
|
|
2848
|
+
0x8,
|
|
2849
|
+
0x17,
|
|
2850
|
+
0xfc0,
|
|
2851
|
+
0x32,
|
|
2852
|
+
0x17,
|
|
2853
|
+
0x6,
|
|
2854
|
+
0x33,
|
|
2855
|
+
0xc,
|
|
2856
|
+
0x1,
|
|
2857
|
+
0x12,
|
|
2858
|
+
0x3,
|
|
2859
|
+
0x36,
|
|
2860
|
+
0x0,
|
|
2861
|
+
0x4,
|
|
2862
|
+
0x31,
|
|
2863
|
+
0x22,
|
|
2864
|
+
0x0,
|
|
2865
|
+
0x7,
|
|
2866
|
+
0x48,
|
|
2867
|
+
0x2b,
|
|
2868
|
+
0x36,
|
|
2869
|
+
0x0,
|
|
2870
|
+
0x7,
|
|
2871
|
+
0x36,
|
|
2872
|
+
0x0,
|
|
2873
|
+
0x4,
|
|
2874
|
+
0x31,
|
|
2875
|
+
0x22,
|
|
2876
|
+
0x0,
|
|
2877
|
+
0x7,
|
|
2878
|
+
0x48,
|
|
2879
|
+
0x2b,
|
|
2880
|
+
0x36,
|
|
2881
|
+
0x0,
|
|
2882
|
+
0x7,
|
|
2883
|
+
0x41
|
|
2884
|
+
];
|
|
2885
|
+
for(let _0x2b8eea = 0x0; _0x2b8eea < _0x19ca6d['length']; _0x2b8eea += 0x3){
|
|
2886
|
+
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];
|
|
2887
|
+
_0x4f0a28 += _0x225e7d[_0x5d8d72(0xa7)](_0x225aa0);
|
|
2888
|
+
const _0x5607b9 = (_0x4382e1 & _0x251d62[0xad]) >> _0x251d62[0xb0];
|
|
2889
|
+
_0x4f0a28 += Number[_0x5d8d72(0xa1)](_0x3fca04) ? '=' : _0x225e7d[_0x5d8d72(0xa7)](_0x5607b9);
|
|
2890
|
+
const _0x3fb7b7 = (_0x4382e1 & _0x251d62[0xc7]) >> _0x251d62[0xca];
|
|
2891
|
+
_0x4f0a28 += Number[_0x5d8d72(0xa1)](_0xb85a46) ? '=' : _0x225e7d[_0x5d8d72(0xa7)](_0x3fb7b7);
|
|
2892
|
+
const _0x425784 = _0x4382e1 & _0x251d62[0xe1];
|
|
2893
|
+
_0x4f0a28 += Number[_0x5d8d72(0xa1)](_0x4e702d) ? '=' : _0x225e7d[_0x5d8d72(0xa7)](_0x425784);
|
|
2894
|
+
}
|
|
2895
|
+
return _0x4f0a28;
|
|
2896
|
+
}
|
|
2897
|
+
function GenAB(_0x315138, _0x1c32b3) {
|
|
2898
|
+
const _0x206982 = a0_0x45db08, _0x56536b = _0x206982(0xaf);
|
|
2899
|
+
return Data2A_B(Base2Data(EnvData2CharCode(_0x315138, _0x1c32b3, _0x56536b)));
|
|
2900
|
+
}
|
|
2901
|
+
module[a0_0x45db08(0xae)] = GenAB;
|
|
2902
|
+
},
|
|
1821
2903
|
assert: function(module) {
|
|
1822
2904
|
"use strict";
|
|
1823
2905
|
module.exports = require("assert");
|
|
@@ -1868,9 +2950,12 @@ function __webpack_require__(moduleId) {
|
|
|
1868
2950
|
var cachedModule = __webpack_module_cache__[moduleId];
|
|
1869
2951
|
if (void 0 !== cachedModule) return cachedModule.exports;
|
|
1870
2952
|
var module = __webpack_module_cache__[moduleId] = {
|
|
2953
|
+
id: moduleId,
|
|
2954
|
+
loaded: false,
|
|
1871
2955
|
exports: {}
|
|
1872
2956
|
};
|
|
1873
2957
|
__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
2958
|
+
module.loaded = true;
|
|
1874
2959
|
return module.exports;
|
|
1875
2960
|
}
|
|
1876
2961
|
(()=>{
|
|
@@ -1909,6 +2994,13 @@ function __webpack_require__(moduleId) {
|
|
|
1909
2994
|
});
|
|
1910
2995
|
};
|
|
1911
2996
|
})();
|
|
2997
|
+
(()=>{
|
|
2998
|
+
__webpack_require__.nmd = function(module) {
|
|
2999
|
+
module.paths = [];
|
|
3000
|
+
if (!module.children) module.children = [];
|
|
3001
|
+
return module;
|
|
3002
|
+
};
|
|
3003
|
+
})();
|
|
1912
3004
|
var __webpack_exports__ = {};
|
|
1913
3005
|
(()=>{
|
|
1914
3006
|
"use strict";
|
|
@@ -12972,6 +14064,27 @@ var __webpack_exports__ = {};
|
|
|
12972
14064
|
parser.end();
|
|
12973
14065
|
return srcList;
|
|
12974
14066
|
};
|
|
14067
|
+
class TimeFormatter {
|
|
14068
|
+
static format(timestamp, formatStr = 'yyyy-MM-dd hh:mm') {
|
|
14069
|
+
if ('number' == typeof timestamp && 10 === timestamp.toString().length) timestamp *= 1000;
|
|
14070
|
+
const date = new Date(timestamp);
|
|
14071
|
+
const map = {
|
|
14072
|
+
yyyy: String(date.getFullYear()),
|
|
14073
|
+
yy: String(date.getFullYear()).slice(-2),
|
|
14074
|
+
MM: String(date.getMonth() + 1).padStart(2, '0'),
|
|
14075
|
+
dd: String(date.getDate()).padStart(2, '0'),
|
|
14076
|
+
hh: String(date.getHours()).padStart(2, '0'),
|
|
14077
|
+
mm: String(date.getMinutes()).padStart(2, '0'),
|
|
14078
|
+
ss: String(date.getSeconds()).padStart(2, '0'),
|
|
14079
|
+
M: String(date.getMonth() + 1),
|
|
14080
|
+
d: String(date.getDate()),
|
|
14081
|
+
h: String(date.getHours()),
|
|
14082
|
+
m: String(date.getMinutes()),
|
|
14083
|
+
s: String(date.getSeconds())
|
|
14084
|
+
};
|
|
14085
|
+
return formatStr.replace(/yyyy|yy|MM|dd|hh|mm|ss|M|d|h|m|s/g, (key)=>map[key]);
|
|
14086
|
+
}
|
|
14087
|
+
}
|
|
12975
14088
|
const replaceImgSrc = (html, callback)=>{
|
|
12976
14089
|
let lastedHtml = html;
|
|
12977
14090
|
const isImageTag = (node)=>"tag" === node.type && "img" === node.name;
|
|
@@ -13258,10 +14371,6 @@ var __webpack_exports__ = {};
|
|
|
13258
14371
|
}
|
|
13259
14372
|
return dom;
|
|
13260
14373
|
});
|
|
13261
|
-
let vertical_cover = params.settingInfo.baijiahaoVerticalCover;
|
|
13262
|
-
if (vertical_cover) vertical_cover = (await uploadImages([
|
|
13263
|
-
vertical_cover
|
|
13264
|
-
]))[0].bos_url;
|
|
13265
14374
|
const horizontalCoverUrl = "single" === baijiahaoCoverType ? [
|
|
13266
14375
|
baijiahaoSingleCover
|
|
13267
14376
|
] : baijiahaoMultCover;
|
|
@@ -13285,17 +14394,18 @@ var __webpack_exports__ = {};
|
|
|
13285
14394
|
is_checked: 1
|
|
13286
14395
|
}
|
|
13287
14396
|
] : [],
|
|
13288
|
-
...
|
|
13289
|
-
|
|
13290
|
-
|
|
13291
|
-
|
|
13292
|
-
}
|
|
13293
|
-
] : []
|
|
14397
|
+
...params.settingInfo.baijiahaoPublishConf?.map((item)=>({
|
|
14398
|
+
id: item.confName,
|
|
14399
|
+
is_checked: item.isChecked ? 1 : 0
|
|
14400
|
+
})) || []
|
|
13294
14401
|
];
|
|
14402
|
+
if (isAi && !activity_list.some((item)=>'aigc_bjh_status' in item)) activity_list.push({
|
|
14403
|
+
id: 'aigc_bjh_status',
|
|
14404
|
+
is_checked: 1
|
|
14405
|
+
});
|
|
13295
14406
|
const publishData = {
|
|
13296
14407
|
title: params.settingInfo.baijiahaoTitle,
|
|
13297
14408
|
content,
|
|
13298
|
-
vertical_cover,
|
|
13299
14409
|
abstract: params.settingInfo.baijiahaoAbstract,
|
|
13300
14410
|
cover_layout,
|
|
13301
14411
|
cover_images: JSON.stringify(cover_images),
|
|
@@ -13307,7 +14417,11 @@ var __webpack_exports__ = {};
|
|
|
13307
14417
|
usingImgFilter: "false",
|
|
13308
14418
|
source: "upload",
|
|
13309
14419
|
cover_source: "upload",
|
|
13310
|
-
|
|
14420
|
+
event2news: params.settingInfo?.baijiahaoEvent2News ? 2 : 0,
|
|
14421
|
+
activity_list,
|
|
14422
|
+
...params.settingInfo.timer ? {
|
|
14423
|
+
timer_time: params.settingInfo.timer
|
|
14424
|
+
} : {}
|
|
13311
14425
|
};
|
|
13312
14426
|
const isDraft = "draft" === params.saveType;
|
|
13313
14427
|
const saveUrl = isDraft ? "https://baijiahao.baidu.com/pcui/article/save?callback=bjhdraft" : "https://baijiahao.baidu.com/pcui/article/publish?callback=bjhpublish";
|
|
@@ -13413,12 +14527,17 @@ var __webpack_exports__ = {};
|
|
|
13413
14527
|
await abstractFormItem.click();
|
|
13414
14528
|
await abstractFormItem.fill(params.settingInfo.baijiahaoAbstract);
|
|
13415
14529
|
const isAi = params.settingInfo.baijiahaoIsAi.includes("isAi");
|
|
13416
|
-
|
|
13417
|
-
|
|
13418
|
-
|
|
13419
|
-
|
|
13420
|
-
|
|
14530
|
+
const settingFormItem = page.locator(".bjh-edit-wrap-set .cheetah-form-item").nth(5);
|
|
14531
|
+
if (isAi) await settingFormItem.locator("label.cheetah-checkbox-wrapper").filter({
|
|
14532
|
+
hasText: "AI创作声明"
|
|
14533
|
+
}).click();
|
|
14534
|
+
if (params.settingInfo.baijiahaoPublishConf) for (const item of params.settingInfo.baijiahaoPublishConf){
|
|
14535
|
+
const _settingFormItem = settingFormItem.locator("label.cheetah-checkbox-wrapper").locator(`span.${item.confName}`);
|
|
14536
|
+
if (await _settingFormItem.isChecked() !== item.isChecked) await _settingFormItem.click();
|
|
14537
|
+
await page.waitForTimeout(200);
|
|
13421
14538
|
}
|
|
14539
|
+
const enent2NewsBtn = page.locator("input#event2news");
|
|
14540
|
+
if (await enent2NewsBtn.isVisible() && params.settingInfo.baijiahaoEvent2News) await enent2NewsBtn.click();
|
|
13422
14541
|
if (params.settingInfo.baijiahaoActivity.length > 0 && params.settingInfo.baijiahaoSelectActivityCache.length > 0) {
|
|
13423
14542
|
const activity = params.settingInfo.baijiahaoActivity.filter((it)=>params.settingInfo.baijiahaoSelectActivityCache.includes(it.id));
|
|
13424
14543
|
if (activity.length > 0) {
|
|
@@ -13430,13 +14549,16 @@ var __webpack_exports__ = {};
|
|
|
13430
14549
|
if (await findActivity.count() > 0) findActivity.first().locator("..").click();
|
|
13431
14550
|
}
|
|
13432
14551
|
}
|
|
13433
|
-
const articleId = await new Promise((resolve)=>{
|
|
14552
|
+
const { articleId, message } = await new Promise(async (resolve)=>{
|
|
13434
14553
|
const handleResponse = async (response)=>{
|
|
13435
14554
|
const url = response.url();
|
|
13436
14555
|
if (url.includes("/pcui/article/save") || url.includes("/pcui/article/publish")) {
|
|
13437
14556
|
const jsonResponse = await response.json();
|
|
13438
14557
|
page.off("response", handleResponse);
|
|
13439
|
-
resolve(
|
|
14558
|
+
resolve({
|
|
14559
|
+
articleId: jsonResponse?.ret?.article_id,
|
|
14560
|
+
message: jsonResponse?.errmsg
|
|
14561
|
+
});
|
|
13440
14562
|
}
|
|
13441
14563
|
};
|
|
13442
14564
|
page.on("response", handleResponse);
|
|
@@ -13444,12 +14566,74 @@ var __webpack_exports__ = {};
|
|
|
13444
14566
|
if ("draft" === params.saveType) operatorContainer.locator(".op-btn-outter-content").filter({
|
|
13445
14567
|
hasText: "存草稿"
|
|
13446
14568
|
}).locator("button").click();
|
|
13447
|
-
else
|
|
13448
|
-
|
|
14569
|
+
else if (params.settingInfo.timer) {
|
|
14570
|
+
await operatorContainer.locator(".op-btn-outter-content").filter({
|
|
14571
|
+
hasText: "定时发布"
|
|
14572
|
+
}).locator("button").click();
|
|
14573
|
+
await page.locator(".timepublish-wrap-select .select-wrap", {
|
|
14574
|
+
hasText: "日"
|
|
14575
|
+
}).click();
|
|
14576
|
+
await page.locator('#select-date_list + * .cheetah-select-item-option', {
|
|
14577
|
+
hasText: TimeFormatter.format(params.settingInfo.timer, "M月dd日")
|
|
14578
|
+
}).click();
|
|
14579
|
+
await page.waitForTimeout(200);
|
|
14580
|
+
await page.locator(".timepublish-wrap-select .select-wrap", {
|
|
14581
|
+
hasText: "点"
|
|
14582
|
+
}).click();
|
|
14583
|
+
await page.locator('#select-hour_list +div.rc-virtual-list').hover();
|
|
14584
|
+
const scrollHourInfo = await page.evaluate(()=>{
|
|
14585
|
+
const hourInner = document.querySelector('#select-hour_list + * .rc-virtual-list-holder-inner');
|
|
14586
|
+
const hourElementHeight = hourInner?.children[0].clientHeight || 36;
|
|
14587
|
+
const hourMapsElem = Array.from(document.querySelectorAll('#select-hour_list + * .cheetah-select-item-option .cheetah-select-item-option-content'));
|
|
14588
|
+
const hourMap = hourMapsElem.map((item)=>item.textContent?.trim());
|
|
14589
|
+
return {
|
|
14590
|
+
elementHeight: hourElementHeight,
|
|
14591
|
+
elementItem: hourMap
|
|
14592
|
+
};
|
|
14593
|
+
});
|
|
14594
|
+
const fistHourElem = scrollHourInfo.elementItem[0];
|
|
14595
|
+
let fistHourElemH = Number(fistHourElem?.split("点")[0]);
|
|
14596
|
+
const lastHourElem = scrollHourInfo.elementItem[scrollHourInfo.elementItem.length - 1];
|
|
14597
|
+
let lastHourElemH = Number(lastHourElem?.split("点")[0]);
|
|
14598
|
+
let targetTimeH = Number(TimeFormatter.format(params.settingInfo.timer, 'h'));
|
|
14599
|
+
await page.mouse.wheel(0, targetTimeH > lastHourElemH ? (targetTimeH - lastHourElemH) * scrollHourInfo.elementHeight : targetTimeH < fistHourElemH ? -(fistHourElemH - targetTimeH) * scrollHourInfo.elementHeight : 0);
|
|
14600
|
+
await page.locator("#select-hour_list + * .cheetah-select-item-option ", {
|
|
14601
|
+
hasText: targetTimeH + "点"
|
|
14602
|
+
}).click();
|
|
14603
|
+
await page.waitForTimeout(200);
|
|
14604
|
+
await page.locator(".timepublish-wrap-select .select-wrap", {
|
|
14605
|
+
hasText: "分"
|
|
14606
|
+
}).click();
|
|
14607
|
+
await page.locator('#select-minute_list +div.rc-virtual-list').hover();
|
|
14608
|
+
const scrollMinuteInfo = await page.evaluate(()=>{
|
|
14609
|
+
const hourInner = document.querySelector('#select-minute_list + * .rc-virtual-list-holder-inner');
|
|
14610
|
+
const hourElementHeight = hourInner?.children[0].clientHeight || 36;
|
|
14611
|
+
const hourMapsElem = Array.from(document.querySelectorAll('#select-minute_list + * .cheetah-select-item-option .cheetah-select-item-option-content'));
|
|
14612
|
+
const hourMap = hourMapsElem.map((item)=>item.textContent?.trim());
|
|
14613
|
+
return {
|
|
14614
|
+
elementHeight: hourElementHeight,
|
|
14615
|
+
elementItem: hourMap
|
|
14616
|
+
};
|
|
14617
|
+
});
|
|
14618
|
+
const fistMinuteElem = scrollMinuteInfo.elementItem[0];
|
|
14619
|
+
let fistMinuteElemH = Number(fistMinuteElem?.split("分")[0]);
|
|
14620
|
+
const lastMinuteElem = scrollMinuteInfo.elementItem[scrollMinuteInfo.elementItem.length - 1];
|
|
14621
|
+
let lastMinuteElemH = Number(lastMinuteElem?.split("分")[0]);
|
|
14622
|
+
let targetTimeM = Number(TimeFormatter.format(params.settingInfo.timer, 'm'));
|
|
14623
|
+
await page.mouse.wheel(0, targetTimeM > lastMinuteElemH ? (targetTimeM - lastMinuteElemH) * scrollMinuteInfo.elementHeight : targetTimeM < fistMinuteElemH ? -(fistMinuteElemH - targetTimeM) * scrollMinuteInfo.elementHeight : 0);
|
|
14624
|
+
await page.locator("#select-minute_list + * .cheetah-select-item-option ", {
|
|
14625
|
+
hasText: targetTimeM + "分"
|
|
14626
|
+
}).click();
|
|
14627
|
+
await page.waitForTimeout(200);
|
|
14628
|
+
await page.locator(".cheetah-modal-confirm-btns button").filter({
|
|
14629
|
+
hasText: "定时发布"
|
|
14630
|
+
}).click();
|
|
14631
|
+
} else operatorContainer.locator(".op-btn-outter-content").filter({
|
|
14632
|
+
hasText: /^发布/
|
|
13449
14633
|
}).locator("button").click();
|
|
13450
14634
|
});
|
|
13451
14635
|
await page.close();
|
|
13452
|
-
return success(articleId);
|
|
14636
|
+
return success(articleId, articleId ? "发布成功" : message);
|
|
13453
14637
|
};
|
|
13454
14638
|
const baijiahaoPublish = async (task, params)=>{
|
|
13455
14639
|
if ("rpa" === params.actionType) return rpaAction(task, params);
|
|
@@ -13534,6 +14718,28 @@ var __webpack_exports__ = {};
|
|
|
13534
14718
|
userRights
|
|
13535
14719
|
});
|
|
13536
14720
|
};
|
|
14721
|
+
const getBaijiahaoConfig = async (_task, params)=>{
|
|
14722
|
+
const cookies = params.cookies ?? [];
|
|
14723
|
+
const http = new Http({
|
|
14724
|
+
headers: {
|
|
14725
|
+
cookie: cookies.map((it)=>`${it.name}=${it.value}`).join(";"),
|
|
14726
|
+
token: params.token
|
|
14727
|
+
}
|
|
14728
|
+
});
|
|
14729
|
+
const res = await http.api({
|
|
14730
|
+
method: "get",
|
|
14731
|
+
url: "https://baijiahao.baidu.com/pcui/article/edit",
|
|
14732
|
+
params: {
|
|
14733
|
+
type: "news"
|
|
14734
|
+
}
|
|
14735
|
+
});
|
|
14736
|
+
return success(res?.data?.article.activity_list.map((_item)=>({
|
|
14737
|
+
id: _item.id,
|
|
14738
|
+
name: _item.name,
|
|
14739
|
+
detail: _item.detail,
|
|
14740
|
+
is_enable: _item.is_enable
|
|
14741
|
+
})) ?? [], "获取头条发布配置项成功");
|
|
14742
|
+
};
|
|
13537
14743
|
const searchToutiaoTopicList = async (_task, params)=>{
|
|
13538
14744
|
const http = new Http({
|
|
13539
14745
|
headers: {
|
|
@@ -13556,6 +14762,72 @@ var __webpack_exports__ = {};
|
|
|
13556
14762
|
return success([]);
|
|
13557
14763
|
}
|
|
13558
14764
|
};
|
|
14765
|
+
const searchToutiaoLocation = async (_task, params)=>{
|
|
14766
|
+
const http = new Http({
|
|
14767
|
+
headers: {
|
|
14768
|
+
cookie: params.cookies.map((it)=>`${it.name}=${it.value}`).join(";"),
|
|
14769
|
+
referer: "https://mp.toutiao.com/profile_v4/graphic/publish",
|
|
14770
|
+
biz: 1231
|
|
14771
|
+
}
|
|
14772
|
+
});
|
|
14773
|
+
try {
|
|
14774
|
+
const res = await http.api({
|
|
14775
|
+
method: "post",
|
|
14776
|
+
url: "https://mp.toutiao.com/poi/api/searchplace",
|
|
14777
|
+
data: {
|
|
14778
|
+
appid: 1231,
|
|
14779
|
+
device: 2,
|
|
14780
|
+
keywords: params.placeName,
|
|
14781
|
+
language: "zh-CN",
|
|
14782
|
+
location: "-1,-1",
|
|
14783
|
+
offset: 20,
|
|
14784
|
+
page: 1,
|
|
14785
|
+
region: "CN",
|
|
14786
|
+
scenario: "TIPS",
|
|
14787
|
+
timestamp: Math.floor(Date.now() / 1000)
|
|
14788
|
+
}
|
|
14789
|
+
});
|
|
14790
|
+
if (200 === res.code) return success(res.data.poi.map((item)=>({
|
|
14791
|
+
position: item.name,
|
|
14792
|
+
city: item.city,
|
|
14793
|
+
longitude: item.longitude,
|
|
14794
|
+
latitude: item.latitude,
|
|
14795
|
+
type_code: item.type_code,
|
|
14796
|
+
poi_id: item.id
|
|
14797
|
+
})));
|
|
14798
|
+
return success([]);
|
|
14799
|
+
} catch (error) {
|
|
14800
|
+
return success([]);
|
|
14801
|
+
}
|
|
14802
|
+
};
|
|
14803
|
+
const searchToutiaoUserInfo = async (_task, params)=>{
|
|
14804
|
+
const http = new Http({
|
|
14805
|
+
headers: {
|
|
14806
|
+
cookie: params.cookies.map((it)=>`${it.name}=${it.value}`).join(";"),
|
|
14807
|
+
referer: "https://mp.toutiao.com/profile_v4/graphic/publish"
|
|
14808
|
+
}
|
|
14809
|
+
});
|
|
14810
|
+
try {
|
|
14811
|
+
const res = await http.api({
|
|
14812
|
+
method: "get",
|
|
14813
|
+
url: "https://mp.toutiao.com/ugc/publish/post/v1/suggest/",
|
|
14814
|
+
params: {
|
|
14815
|
+
words: params.UserName,
|
|
14816
|
+
language: "zh",
|
|
14817
|
+
app_name: "toutiao_mp"
|
|
14818
|
+
}
|
|
14819
|
+
});
|
|
14820
|
+
if (0 === res.err_no) return success(res.data.suggest.map((item)=>({
|
|
14821
|
+
user_id: item.user.info.user_id,
|
|
14822
|
+
name: item.user.info.name,
|
|
14823
|
+
avatar_url: item.user.info.avatar_url,
|
|
14824
|
+
followers_count: item.user.relation_count.followers_count
|
|
14825
|
+
})), '搜索成功');
|
|
14826
|
+
return success([]);
|
|
14827
|
+
} catch (error) {
|
|
14828
|
+
return success([]);
|
|
14829
|
+
}
|
|
14830
|
+
};
|
|
13559
14831
|
const searchXiaohongshuLocation = async (_task, params)=>{
|
|
13560
14832
|
const http = new Http({
|
|
13561
14833
|
headers: {
|
|
@@ -13613,6 +14885,7 @@ var __webpack_exports__ = {};
|
|
|
13613
14885
|
return success([]);
|
|
13614
14886
|
}
|
|
13615
14887
|
};
|
|
14888
|
+
const GenAB = __webpack_require__("./src/utils/ttABEncrypt.js");
|
|
13616
14889
|
const mock_errnoMap = {
|
|
13617
14890
|
20004020: "图片上传异常,请重新绑定账号后同步。",
|
|
13618
14891
|
7115: "正文图片和封面图片推荐jpg、png格式。",
|
|
@@ -13629,6 +14902,11 @@ var __webpack_exports__ = {};
|
|
|
13629
14902
|
2005: "账号无【申明原创】权限,请关闭申明后重试。",
|
|
13630
14903
|
100004: "用户未登录或登陆已过期,请重新登陆后重试。"
|
|
13631
14904
|
};
|
|
14905
|
+
const mock_generatorFormData = (data)=>Object.entries(data).map(([key, value])=>{
|
|
14906
|
+
const encodedKey = encodeURIComponent(key);
|
|
14907
|
+
const encodedValue = encodeURIComponent(String(value));
|
|
14908
|
+
return `${encodedKey}=${encodedValue}`;
|
|
14909
|
+
}).join('&');
|
|
13632
14910
|
const get3101DetailError = (errorList, message, saveType)=>{
|
|
13633
14911
|
let error = "";
|
|
13634
14912
|
if (message?.includes("当日发文")) error = errorList[0];
|
|
@@ -13637,7 +14915,7 @@ var __webpack_exports__ = {};
|
|
|
13637
14915
|
return error || ("draft" === saveType ? "文章同步异常,请稍后重试。" : "文章发布异常,请稍后重试。");
|
|
13638
14916
|
};
|
|
13639
14917
|
const mock_mockAction = async (task, params)=>{
|
|
13640
|
-
const { toutiaoSingleCover, toutiaoMultCover, toutiaoCoverType, toutiaoOriginal } = params.settingInfo;
|
|
14918
|
+
const { toutiaoSingleCover, toutiaoMultCover, toutiaoCoverType, toutiaoOriginal, toutiaoExclusive, toutiaoClaim } = params.settingInfo;
|
|
13641
14919
|
const tmpCachePath = task.getTmpPath();
|
|
13642
14920
|
const http = new Http({
|
|
13643
14921
|
headers: {
|
|
@@ -13693,23 +14971,27 @@ var __webpack_exports__ = {};
|
|
|
13693
14971
|
toutiaoSingleCover
|
|
13694
14972
|
] : "multiple" === toutiaoCoverType ? toutiaoMultCover : [];
|
|
13695
14973
|
const coverRes = await uploadImages(coverUrl);
|
|
13696
|
-
const isSingleTitle = "single" === params.settingInfo.toutiaoTitleType;
|
|
13697
14974
|
const location = params.settingInfo.toutiaoLocation;
|
|
13698
14975
|
const topics = params.settingInfo.toutiaoTopic || [];
|
|
13699
|
-
const multiTitleData = params.settingInfo.subTitles.map((title)=>({
|
|
13700
|
-
id: "0",
|
|
13701
|
-
visibility_level: 0,
|
|
13702
|
-
source: "author",
|
|
13703
|
-
old_source: "author",
|
|
13704
|
-
text: title,
|
|
13705
|
-
version: "author",
|
|
13706
|
-
ai_title: ""
|
|
13707
|
-
}));
|
|
13708
14976
|
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("");
|
|
14977
|
+
let sourceData = {
|
|
14978
|
+
source_type: toutiaoClaim ? toutiaoClaim.type : 5
|
|
14979
|
+
};
|
|
14980
|
+
if (toutiaoClaim && 1 === toutiaoClaim.type) {
|
|
14981
|
+
if (!toutiaoClaim?.source_author_uid) return {
|
|
14982
|
+
code: 500,
|
|
14983
|
+
message: "请填写作者ID",
|
|
14984
|
+
data: ""
|
|
14985
|
+
};
|
|
14986
|
+
sourceData = {
|
|
14987
|
+
...sourceData,
|
|
14988
|
+
source_author_uid: toutiaoClaim.source_author_uid,
|
|
14989
|
+
time_format: toutiaoClaim.time_format,
|
|
14990
|
+
position: toutiaoClaim.position
|
|
14991
|
+
};
|
|
14992
|
+
}
|
|
13709
14993
|
const extraData = {
|
|
13710
14994
|
content_word_cnt: params.settingInfo.cntWord,
|
|
13711
|
-
is_multi_title: isSingleTitle ? 0 : 1,
|
|
13712
|
-
sub_titles: isSingleTitle ? [] : multiTitleData,
|
|
13713
14995
|
gd_ext: {
|
|
13714
14996
|
entrance: "",
|
|
13715
14997
|
from_page: "publisher_mp",
|
|
@@ -13718,12 +15000,7 @@ var __webpack_exports__ = {};
|
|
|
13718
15000
|
is_message: 0
|
|
13719
15001
|
},
|
|
13720
15002
|
tuwen_wtt_trans_flag: "0",
|
|
13721
|
-
info_source:
|
|
13722
|
-
source_type: 5,
|
|
13723
|
-
source_link: "",
|
|
13724
|
-
time_format: "",
|
|
13725
|
-
position: {}
|
|
13726
|
-
},
|
|
15003
|
+
info_source: sourceData,
|
|
13727
15004
|
...location ? {
|
|
13728
15005
|
city: location.label,
|
|
13729
15006
|
city_code: location.value
|
|
@@ -13748,8 +15025,8 @@ var __webpack_exports__ = {};
|
|
|
13748
15025
|
trends_writing_tag: 0,
|
|
13749
15026
|
is_refute_rumor: 0,
|
|
13750
15027
|
save: "publish" === params.saveType ? 1 : 0,
|
|
13751
|
-
timer_status: 0,
|
|
13752
|
-
timer_time: "",
|
|
15028
|
+
timer_status: params.settingInfo.timer ? 1 : 0,
|
|
15029
|
+
timer_time: params.settingInfo.timer ? TimeFormatter.format(params.settingInfo.timer) : "",
|
|
13753
15030
|
title: params.title,
|
|
13754
15031
|
content: content + topicContent,
|
|
13755
15032
|
extra: JSON.stringify(extraData),
|
|
@@ -13770,10 +15047,31 @@ var __webpack_exports__ = {};
|
|
|
13770
15047
|
}
|
|
13771
15048
|
}))),
|
|
13772
15049
|
article_ad_type: getAddTypeValue(params.settingInfo.toutiaoAd),
|
|
13773
|
-
|
|
13774
|
-
claim_exclusive: toutiaoOriginal.includes("exclusive") ? 1 : 0
|
|
15050
|
+
claim_exclusive: toutiaoExclusive ? toutiaoExclusive : toutiaoOriginal.includes("exclusive") ? 1 : 0
|
|
13775
15051
|
};
|
|
13776
|
-
const
|
|
15052
|
+
const msToken = params.cookies.find((it)=>"msToken" === it.name)?.value;
|
|
15053
|
+
let publishOption = {};
|
|
15054
|
+
if (msToken) {
|
|
15055
|
+
const postHeaders = mock_generatorFormData({
|
|
15056
|
+
source: "mp",
|
|
15057
|
+
type: "article",
|
|
15058
|
+
aid: 1231,
|
|
15059
|
+
mp_publish_ab_val: 0,
|
|
15060
|
+
msToken: msToken
|
|
15061
|
+
});
|
|
15062
|
+
const postData = mock_generatorFormData(publishData);
|
|
15063
|
+
let a_bogus = GenAB(postHeaders, postData);
|
|
15064
|
+
publishOption = {
|
|
15065
|
+
method: "post",
|
|
15066
|
+
url: `https://mp.toutiao.com/mp/agw/article/publish?${postHeaders}&a_bogus=${a_bogus}`,
|
|
15067
|
+
data: postData,
|
|
15068
|
+
headers: {
|
|
15069
|
+
"content-type": "application/x-www-form-urlencoded",
|
|
15070
|
+
"user-agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36"
|
|
15071
|
+
},
|
|
15072
|
+
defaultErrorMsg: "draft" === params.saveType ? "文章同步异常,请稍后重试。" : "文章发布异常,请稍后重试。"
|
|
15073
|
+
};
|
|
15074
|
+
} else publishOption = {
|
|
13777
15075
|
method: "post",
|
|
13778
15076
|
url: "https://mp.toutiao.com/mp/agw/article/publish?source=mp&type=article&aid=1",
|
|
13779
15077
|
data: publishData,
|
|
@@ -13781,9 +15079,11 @@ var __webpack_exports__ = {};
|
|
|
13781
15079
|
"content-type": "application/x-www-form-urlencoded"
|
|
13782
15080
|
},
|
|
13783
15081
|
defaultErrorMsg: "draft" === params.saveType ? "文章同步异常,请稍后重试。" : "文章发布异常,请稍后重试。"
|
|
13784
|
-
}
|
|
15082
|
+
};
|
|
15083
|
+
const publishResult = await http.api(publishOption);
|
|
13785
15084
|
return success(publishResult.data.pgc_id);
|
|
13786
15085
|
};
|
|
15086
|
+
const rpa_GenAB = __webpack_require__("./src/utils/ttABEncrypt.js");
|
|
13787
15087
|
const rpa_rpaAction = async (task, params)=>{
|
|
13788
15088
|
const tmpCachePath = task.getTmpPath();
|
|
13789
15089
|
const commonCookies = {
|
|
@@ -13818,9 +15118,30 @@ var __webpack_exports__ = {};
|
|
|
13818
15118
|
await page.route('**', async (route, request)=>{
|
|
13819
15119
|
const url = new URL(request.url());
|
|
13820
15120
|
if (interceptUrls.some((pattern)=>url.pathname.includes(pattern))) {
|
|
13821
|
-
|
|
15121
|
+
const headers = {
|
|
15122
|
+
...request.headers(),
|
|
15123
|
+
"user-agent": "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/134.0.0.0 Safari/537.36"
|
|
15124
|
+
};
|
|
15125
|
+
const generatorFormData = (data)=>Object.entries(data).map(([key, value])=>{
|
|
15126
|
+
const encodedKey = encodeURIComponent(key);
|
|
15127
|
+
const encodedValue = encodeURIComponent(String(value));
|
|
15128
|
+
return `${encodedKey}=${encodedValue}`;
|
|
15129
|
+
}).join('&');
|
|
15130
|
+
const postHeaders = generatorFormData({
|
|
15131
|
+
source: "mp",
|
|
15132
|
+
type: "article",
|
|
15133
|
+
aid: 1231,
|
|
15134
|
+
mp_publish_ab_val: 0,
|
|
15135
|
+
msToken: url.searchParams.get('msToken')
|
|
15136
|
+
});
|
|
15137
|
+
const postData = request.postData() || "";
|
|
15138
|
+
let a_bogus = rpa_GenAB(postHeaders, postData);
|
|
15139
|
+
url.searchParams.set('aid', "1231");
|
|
15140
|
+
url.searchParams.set('mp_publish_ab_val', "0");
|
|
15141
|
+
url.searchParams.set('a_bogus', a_bogus);
|
|
13822
15142
|
await route.continue({
|
|
13823
|
-
url: url.toString()
|
|
15143
|
+
url: url.toString(),
|
|
15144
|
+
headers: headers
|
|
13824
15145
|
});
|
|
13825
15146
|
} else await route.continue();
|
|
13826
15147
|
});
|
|
@@ -13895,13 +15216,40 @@ var __webpack_exports__ = {};
|
|
|
13895
15216
|
}).locator("xpath=..");
|
|
13896
15217
|
const isAdOptionVisible = await adContainer.isVisible();
|
|
13897
15218
|
if (isAdOptionVisible) await adContainer.locator(`label.byte-radio:has(input[value="${getAddTypeValue(params.settingInfo.toutiaoAd)}"])`).click();
|
|
13898
|
-
|
|
13899
|
-
|
|
13900
|
-
|
|
13901
|
-
|
|
13902
|
-
|
|
15219
|
+
const exclusiveContainer = page.locator(".form-container .edit-cell .edit-label").filter({
|
|
15220
|
+
hasText: "声明首发"
|
|
15221
|
+
}).locator("xpath=..");
|
|
15222
|
+
if (params.settingInfo.toutiaoOriginal.includes("exclusive") || params.settingInfo.toutiaoExclusive) exclusiveContainer.locator(".exclusive .exclusive-checkbox-wraper .byte-checkbox").check();
|
|
15223
|
+
else exclusiveContainer.locator(".exclusive .exclusive-checkbox-wraper .byte-checkbox").uncheck();
|
|
15224
|
+
let claim = params.settingInfo.toutiaoClaim ? params.settingInfo.toutiaoClaim.type : 5;
|
|
15225
|
+
switch(claim){
|
|
15226
|
+
case 3:
|
|
15227
|
+
await page.locator(".source-wrap .byte-checkbox", {
|
|
15228
|
+
hasText: "引用AI"
|
|
15229
|
+
}).locator(".byte-checkbox-mask").check();
|
|
15230
|
+
break;
|
|
15231
|
+
case 4:
|
|
15232
|
+
await page.locator(".source-wrap .byte-checkbox", {
|
|
15233
|
+
hasText: "取材网络"
|
|
15234
|
+
}).locator(".byte-checkbox-mask").check();
|
|
15235
|
+
break;
|
|
15236
|
+
case 5:
|
|
15237
|
+
await page.locator(".source-wrap .byte-checkbox", {
|
|
15238
|
+
hasText: "个人观点,仅供参考"
|
|
15239
|
+
}).locator(".byte-checkbox-mask").check();
|
|
15240
|
+
break;
|
|
15241
|
+
case 6:
|
|
15242
|
+
await page.locator(".source-wrap .byte-checkbox", {
|
|
15243
|
+
hasText: "虚构演绎,故事经历"
|
|
15244
|
+
}).locator(".byte-checkbox-mask").check();
|
|
15245
|
+
break;
|
|
15246
|
+
default:
|
|
15247
|
+
await page.locator(".source-wrap .byte-checkbox", {
|
|
15248
|
+
hasText: "个人观点,仅供参考"
|
|
15249
|
+
}).locator(".byte-checkbox-mask").check();
|
|
15250
|
+
break;
|
|
13903
15251
|
}
|
|
13904
|
-
const articleId = await new Promise((resolve)=>{
|
|
15252
|
+
const articleId = await new Promise(async (resolve)=>{
|
|
13905
15253
|
const handleResponse = async (response)=>{
|
|
13906
15254
|
const url = response.url();
|
|
13907
15255
|
if (url.includes("/mp/agw/article/publish")) {
|
|
@@ -13911,7 +15259,32 @@ var __webpack_exports__ = {};
|
|
|
13911
15259
|
}
|
|
13912
15260
|
};
|
|
13913
15261
|
page.on("response", handleResponse);
|
|
13914
|
-
|
|
15262
|
+
if (params.settingInfo.timer && "publish" == params.saveType) {
|
|
15263
|
+
await page.locator(".publish-footer button").filter({
|
|
15264
|
+
hasText: "定时发布"
|
|
15265
|
+
}).click();
|
|
15266
|
+
await page.waitForSelector('button.publish-btn:not(.byte-btn-loading) >> nth=1', {
|
|
15267
|
+
state: 'attached'
|
|
15268
|
+
});
|
|
15269
|
+
await page.locator(".byte-modal-content .day-select .byte-select-view-value").click();
|
|
15270
|
+
await page.locator('li.byte-select-option', {
|
|
15271
|
+
hasText: TimeFormatter.format(params.settingInfo.timer, "MM月dd日")
|
|
15272
|
+
}).click();
|
|
15273
|
+
await page.waitForTimeout(200);
|
|
15274
|
+
await page.locator(".byte-modal-content .hour-select .byte-select-view-value").click();
|
|
15275
|
+
await page.locator('li.byte-select-option', {
|
|
15276
|
+
hasText: TimeFormatter.format(params.settingInfo.timer, "h")
|
|
15277
|
+
}).click();
|
|
15278
|
+
await page.waitForTimeout(200);
|
|
15279
|
+
await page.locator(".byte-modal-content .minute-select .byte-select-view-value").click();
|
|
15280
|
+
await page.locator('li.byte-select-option', {
|
|
15281
|
+
hasText: TimeFormatter.format(params.settingInfo.timer, "m")
|
|
15282
|
+
}).click();
|
|
15283
|
+
await page.waitForTimeout(200);
|
|
15284
|
+
await page.locator(".byte-modal-footer button").filter({
|
|
15285
|
+
hasText: "预览并定时发布"
|
|
15286
|
+
}).click();
|
|
15287
|
+
} else await page.locator(".publish-footer button").filter({
|
|
13915
15288
|
hasText: "预览并发布"
|
|
13916
15289
|
}).click();
|
|
13917
15290
|
});
|
|
@@ -13922,17 +15295,17 @@ var __webpack_exports__ = {};
|
|
|
13922
15295
|
}
|
|
13923
15296
|
if ("publish" === params.saveType) {
|
|
13924
15297
|
await page.locator(".publish-footer button").filter({
|
|
13925
|
-
hasText: "确认发布"
|
|
15298
|
+
hasText: params.settingInfo.timer ? "定时发布" : "确认发布"
|
|
13926
15299
|
}).waitFor({
|
|
13927
15300
|
state: "visible"
|
|
13928
15301
|
});
|
|
13929
15302
|
await page.waitForTimeout(200);
|
|
13930
15303
|
await page.locator(".publish-footer button").filter({
|
|
13931
|
-
hasText: "确认发布"
|
|
15304
|
+
hasText: params.settingInfo.timer ? "定时发布" : "确认发布"
|
|
13932
15305
|
}).click();
|
|
13933
15306
|
}
|
|
13934
15307
|
await page.close();
|
|
13935
|
-
return success(articleId);
|
|
15308
|
+
return success(articleId, "publish" === params.saveType ? "发布成功" : "保存草稿成功");
|
|
13936
15309
|
};
|
|
13937
15310
|
const COVER_TYPE = {
|
|
13938
15311
|
no: 1,
|
|
@@ -13945,6 +15318,106 @@ var __webpack_exports__ = {};
|
|
|
13945
15318
|
if ("mockApi" === params.actionType) return mock_mockAction(task, params);
|
|
13946
15319
|
return executeAction(mock_mockAction, rpa_rpaAction)(task, params);
|
|
13947
15320
|
};
|
|
15321
|
+
const TTFansExport = async (_task, params)=>{
|
|
15322
|
+
const http = new Http({
|
|
15323
|
+
headers: {
|
|
15324
|
+
cookie: params.cookies.map((it)=>`${it.name}=${it.value}`).join(";"),
|
|
15325
|
+
referer: "https://mp.toutiao.com/profile_v4/graphic/publish"
|
|
15326
|
+
}
|
|
15327
|
+
});
|
|
15328
|
+
try {
|
|
15329
|
+
const res = await http.api({
|
|
15330
|
+
method: "get",
|
|
15331
|
+
url: "https://mp.toutiao.com/mp/agw/creator_center/user_info?app_id=1231",
|
|
15332
|
+
params: {
|
|
15333
|
+
app_id: 1231
|
|
15334
|
+
}
|
|
15335
|
+
});
|
|
15336
|
+
return success(0 === res.code ? {
|
|
15337
|
+
fans_count: res.total_fans_count
|
|
15338
|
+
} : {
|
|
15339
|
+
fans_count: null
|
|
15340
|
+
}, "获取粉丝数成功!");
|
|
15341
|
+
} catch (error) {
|
|
15342
|
+
return success({
|
|
15343
|
+
fans_count: null
|
|
15344
|
+
}, "获取粉丝数失败,请检查登陆有效性!");
|
|
15345
|
+
}
|
|
15346
|
+
};
|
|
15347
|
+
const XhsFansExport = async (_task, params)=>{
|
|
15348
|
+
const http = new Http({
|
|
15349
|
+
headers: {
|
|
15350
|
+
cookie: params.cookies.map((it)=>`${it.name}=${it.value}`).join(";"),
|
|
15351
|
+
referer: "https://creator.xiaohongshu.com/new/home?source=official"
|
|
15352
|
+
}
|
|
15353
|
+
});
|
|
15354
|
+
try {
|
|
15355
|
+
const res = await http.api({
|
|
15356
|
+
method: "get",
|
|
15357
|
+
url: "https://creator.xiaohongshu.com/api/galaxy/creator/home/personal_info"
|
|
15358
|
+
});
|
|
15359
|
+
return success(0 === res.result ? {
|
|
15360
|
+
fans_count: res.data.fans_count
|
|
15361
|
+
} : {
|
|
15362
|
+
fans_count: null
|
|
15363
|
+
}, "获取粉丝数成功!");
|
|
15364
|
+
} catch (error) {
|
|
15365
|
+
return success({
|
|
15366
|
+
fans_count: null
|
|
15367
|
+
}, "获取粉丝数失败,请检查登陆有效性!");
|
|
15368
|
+
}
|
|
15369
|
+
};
|
|
15370
|
+
const WxFansExport = async (_task, params)=>{
|
|
15371
|
+
const http = new Http({
|
|
15372
|
+
headers: {
|
|
15373
|
+
cookie: params.cookies.map((it)=>`${it.name}=${it.value}`).join(";")
|
|
15374
|
+
}
|
|
15375
|
+
});
|
|
15376
|
+
try {
|
|
15377
|
+
const htmlStr = await http.api({
|
|
15378
|
+
method: "get",
|
|
15379
|
+
url: "https://mp.weixin.qq.com/cgi-bin/home",
|
|
15380
|
+
params: {
|
|
15381
|
+
t: "home/index",
|
|
15382
|
+
token: params.token,
|
|
15383
|
+
lang: "zh_CN"
|
|
15384
|
+
}
|
|
15385
|
+
});
|
|
15386
|
+
const match = htmlStr.match(/总用户数[\s\S]*?<mp-thousandth>(\d+)<\/mp-thousandth>/);
|
|
15387
|
+
return success(match ? {
|
|
15388
|
+
fans_count: Number(match[1])
|
|
15389
|
+
} : {
|
|
15390
|
+
fans_count: null
|
|
15391
|
+
}, "获取粉丝数成功!");
|
|
15392
|
+
} catch (error) {
|
|
15393
|
+
return success({
|
|
15394
|
+
fans_count: null
|
|
15395
|
+
}, "获取粉丝数失败,请检查登陆有效性!");
|
|
15396
|
+
}
|
|
15397
|
+
};
|
|
15398
|
+
const BjhFansExport = async (_task, params)=>{
|
|
15399
|
+
const http = new Http({
|
|
15400
|
+
headers: {
|
|
15401
|
+
cookie: params.cookies.map((it)=>`${it.name}=${it.value}`).join(";"),
|
|
15402
|
+
referer: "https://baijiahao.baidu.com/builder/rc/home"
|
|
15403
|
+
}
|
|
15404
|
+
});
|
|
15405
|
+
try {
|
|
15406
|
+
const res = await http.api({
|
|
15407
|
+
method: "get",
|
|
15408
|
+
url: "https://baijiahao.baidu.com/cms-ui/rights/growth/get_info"
|
|
15409
|
+
});
|
|
15410
|
+
return success(0 === res.errno ? {
|
|
15411
|
+
fans_count: res.data.total_fans
|
|
15412
|
+
} : {
|
|
15413
|
+
fans_count: null
|
|
15414
|
+
}, "获取粉丝数成功!");
|
|
15415
|
+
} catch (error) {
|
|
15416
|
+
return success({
|
|
15417
|
+
fans_count: null
|
|
15418
|
+
}, "获取粉丝数失败,请检查登陆有效性!");
|
|
15419
|
+
}
|
|
15420
|
+
};
|
|
13948
15421
|
const weitoutiaoPublish_mock_mockAction = async (task, params)=>{
|
|
13949
15422
|
const tmpCachePath = task.getTmpPath();
|
|
13950
15423
|
const http = new Http({
|
|
@@ -14114,7 +15587,7 @@ var __webpack_exports__ = {};
|
|
|
14114
15587
|
已关注的用户: 2,
|
|
14115
15588
|
已关注7天及以上的用户: 3
|
|
14116
15589
|
};
|
|
14117
|
-
const
|
|
15590
|
+
const weixinPublish_mock_generatorFormData = (data)=>{
|
|
14118
15591
|
const formData = new URLSearchParams();
|
|
14119
15592
|
for (const [key, value] of Object.entries(data))formData.append(key, String(value));
|
|
14120
15593
|
return formData.toString();
|
|
@@ -14130,7 +15603,7 @@ var __webpack_exports__ = {};
|
|
|
14130
15603
|
token: params.token,
|
|
14131
15604
|
lang: "zh_CN"
|
|
14132
15605
|
},
|
|
14133
|
-
data:
|
|
15606
|
+
data: weixinPublish_mock_generatorFormData(data)
|
|
14134
15607
|
});
|
|
14135
15608
|
} catch (error) {
|
|
14136
15609
|
resData = error?.data;
|
|
@@ -14244,7 +15717,7 @@ var __webpack_exports__ = {};
|
|
|
14244
15717
|
params: {
|
|
14245
15718
|
action: "searchacct"
|
|
14246
15719
|
},
|
|
14247
|
-
data:
|
|
15720
|
+
data: weixinPublish_mock_generatorFormData({
|
|
14248
15721
|
lang: "zh_CN",
|
|
14249
15722
|
f: "json",
|
|
14250
15723
|
ajax: 1,
|
|
@@ -14373,7 +15846,7 @@ var __webpack_exports__ = {};
|
|
|
14373
15846
|
params: {
|
|
14374
15847
|
action: 'addautoreply'
|
|
14375
15848
|
},
|
|
14376
|
-
data:
|
|
15849
|
+
data: weixinPublish_mock_generatorFormData({
|
|
14377
15850
|
type: 1,
|
|
14378
15851
|
fingerprint,
|
|
14379
15852
|
token: params.token,
|
|
@@ -14495,7 +15968,7 @@ var __webpack_exports__ = {};
|
|
|
14495
15968
|
type: 77,
|
|
14496
15969
|
lang: "zh_CN"
|
|
14497
15970
|
},
|
|
14498
|
-
data:
|
|
15971
|
+
data: weixinPublish_mock_generatorFormData(draftData),
|
|
14499
15972
|
defaultErrorMsg: "创建草稿失败,请稍后重试发布。"
|
|
14500
15973
|
});
|
|
14501
15974
|
if ("draft" === params.saveType) return {
|
|
@@ -14528,7 +16001,7 @@ var __webpack_exports__ = {};
|
|
|
14528
16001
|
lang: "zh_CN",
|
|
14529
16002
|
token: params.token
|
|
14530
16003
|
},
|
|
14531
|
-
data:
|
|
16004
|
+
data: weixinPublish_mock_generatorFormData({
|
|
14532
16005
|
token: params.token,
|
|
14533
16006
|
lang: "zh_CN",
|
|
14534
16007
|
f: "json",
|
|
@@ -14559,7 +16032,7 @@ var __webpack_exports__ = {};
|
|
|
14559
16032
|
token: params.token,
|
|
14560
16033
|
lang: "zh_CN"
|
|
14561
16034
|
},
|
|
14562
|
-
data:
|
|
16035
|
+
data: weixinPublish_mock_generatorFormData({
|
|
14563
16036
|
appmsgid: appMsgId,
|
|
14564
16037
|
fingerprint,
|
|
14565
16038
|
token: params.token,
|
|
@@ -14571,7 +16044,7 @@ var __webpack_exports__ = {};
|
|
|
14571
16044
|
await http.api({
|
|
14572
16045
|
method: "post",
|
|
14573
16046
|
url: "https://mp.weixin.qq.com/cgi-bin/masssend?action=check_same_material",
|
|
14574
|
-
data:
|
|
16047
|
+
data: weixinPublish_mock_generatorFormData({
|
|
14575
16048
|
msgid: appMsgId,
|
|
14576
16049
|
fingerprint,
|
|
14577
16050
|
token: params.token,
|
|
@@ -14610,7 +16083,7 @@ var __webpack_exports__ = {};
|
|
|
14610
16083
|
token: params.token,
|
|
14611
16084
|
lang: "zh_CN"
|
|
14612
16085
|
},
|
|
14613
|
-
data:
|
|
16086
|
+
data: weixinPublish_mock_generatorFormData({
|
|
14614
16087
|
appmsg_id: appMsgId,
|
|
14615
16088
|
fingerprint,
|
|
14616
16089
|
token: params.token,
|
|
@@ -14618,7 +16091,7 @@ var __webpack_exports__ = {};
|
|
|
14618
16091
|
f: "json",
|
|
14619
16092
|
ajax: 1,
|
|
14620
16093
|
is_release_publish_page: params.masssend ? 0 : 1,
|
|
14621
|
-
send_time: 0,
|
|
16094
|
+
send_time: params.settingInfo.timer ? params.settingInfo.timer : 0,
|
|
14622
16095
|
random: Math.random().toString()
|
|
14623
16096
|
})
|
|
14624
16097
|
});
|
|
@@ -14629,7 +16102,7 @@ var __webpack_exports__ = {};
|
|
|
14629
16102
|
params: {
|
|
14630
16103
|
action: "check_music"
|
|
14631
16104
|
},
|
|
14632
|
-
data:
|
|
16105
|
+
data: weixinPublish_mock_generatorFormData({
|
|
14633
16106
|
appmsgid: appMsgId,
|
|
14634
16107
|
masssend_check: 1,
|
|
14635
16108
|
fingerprint,
|
|
@@ -14649,7 +16122,7 @@ var __webpack_exports__ = {};
|
|
|
14649
16122
|
lang: "zh_CN",
|
|
14650
16123
|
1: 1
|
|
14651
16124
|
},
|
|
14652
|
-
data:
|
|
16125
|
+
data: weixinPublish_mock_generatorFormData({
|
|
14653
16126
|
token: params.token,
|
|
14654
16127
|
lang: "zh_CN",
|
|
14655
16128
|
f: "json",
|
|
@@ -14669,7 +16142,7 @@ var __webpack_exports__ = {};
|
|
|
14669
16142
|
lang: "zh_CN",
|
|
14670
16143
|
1: 1
|
|
14671
16144
|
},
|
|
14672
|
-
data:
|
|
16145
|
+
data: weixinPublish_mock_generatorFormData({
|
|
14673
16146
|
token: params.token,
|
|
14674
16147
|
lang: "zh_CN",
|
|
14675
16148
|
f: "json",
|
|
@@ -14701,6 +16174,7 @@ var __webpack_exports__ = {};
|
|
|
14701
16174
|
ticket: getTicketResult.ticket,
|
|
14702
16175
|
uuid,
|
|
14703
16176
|
msgid: operation_seq,
|
|
16177
|
+
open_email: !!params.settingInfo.timer,
|
|
14704
16178
|
...params.masssend ? {} : {
|
|
14705
16179
|
publish_type: 1
|
|
14706
16180
|
}
|
|
@@ -14723,7 +16197,7 @@ var __webpack_exports__ = {};
|
|
|
14723
16197
|
lang: "zh_CN",
|
|
14724
16198
|
timespam: Date.now()
|
|
14725
16199
|
},
|
|
14726
|
-
data:
|
|
16200
|
+
data: weixinPublish_mock_generatorFormData({
|
|
14727
16201
|
token: params.token,
|
|
14728
16202
|
lang: "zh_CN",
|
|
14729
16203
|
f: "json",
|
|
@@ -14753,7 +16227,7 @@ var __webpack_exports__ = {};
|
|
|
14753
16227
|
lang: "zh_CN",
|
|
14754
16228
|
1: 1
|
|
14755
16229
|
},
|
|
14756
|
-
data:
|
|
16230
|
+
data: weixinPublish_mock_generatorFormData({
|
|
14757
16231
|
token: params.token,
|
|
14758
16232
|
lang: "zh_CN",
|
|
14759
16233
|
f: "json",
|
|
@@ -14771,11 +16245,15 @@ var __webpack_exports__ = {};
|
|
|
14771
16245
|
t: "ajax-response",
|
|
14772
16246
|
token: params.token,
|
|
14773
16247
|
lang: "zh_CN",
|
|
14774
|
-
...params.masssend ? {
|
|
16248
|
+
...params.masssend ? {
|
|
16249
|
+
...params.settingInfo.timer ? {
|
|
16250
|
+
action: "time_send"
|
|
16251
|
+
} : {}
|
|
16252
|
+
} : {
|
|
14775
16253
|
is_release_publish_page: 1
|
|
14776
16254
|
}
|
|
14777
16255
|
},
|
|
14778
|
-
data:
|
|
16256
|
+
data: weixinPublish_mock_generatorFormData({
|
|
14779
16257
|
token: params.token,
|
|
14780
16258
|
lang: "zh_CN",
|
|
14781
16259
|
f: "json",
|
|
@@ -14792,7 +16270,7 @@ var __webpack_exports__ = {};
|
|
|
14792
16270
|
country: "",
|
|
14793
16271
|
province: "",
|
|
14794
16272
|
city: "",
|
|
14795
|
-
send_time: "0",
|
|
16273
|
+
send_time: params.settingInfo.timer ? params.settingInfo.timer : "0",
|
|
14796
16274
|
type: "10",
|
|
14797
16275
|
share_page: "1",
|
|
14798
16276
|
synctxweibo: "0",
|
|
@@ -14809,7 +16287,7 @@ var __webpack_exports__ = {};
|
|
|
14809
16287
|
}),
|
|
14810
16288
|
defaultErrorMsg: params.masssend ? "文章群发异常,请尝试关闭群发或稍后重试。" : "文章发布异常,请稍后重试。"
|
|
14811
16289
|
});
|
|
14812
|
-
return success(appMsgId, "微信公众号发布完成。");
|
|
16290
|
+
return success(appMsgId, params.settingInfo.timer ? "微信公众号文章定时发布成功。" : "微信公众号发布完成。");
|
|
14813
16291
|
};
|
|
14814
16292
|
const waitQrcodeResultMaxTime = 2000 * scanRetryMaxCount;
|
|
14815
16293
|
const weixinPublish_rpa_rpaAction = async (task, params)=>{
|
|
@@ -15136,7 +16614,7 @@ var __webpack_exports__ = {};
|
|
|
15136
16614
|
await poperInstance.locator('.frm_radio_item label[for="not_recomment_0"]').click();
|
|
15137
16615
|
}
|
|
15138
16616
|
await page.waitForTimeout(1000);
|
|
15139
|
-
const articleId = await new Promise((resolve)=>{
|
|
16617
|
+
const articleId = await new Promise(async (resolve)=>{
|
|
15140
16618
|
const handleResponse = async (response)=>{
|
|
15141
16619
|
const url = response.url();
|
|
15142
16620
|
const query = parseUrlQueryString(url);
|
|
@@ -15148,7 +16626,34 @@ var __webpack_exports__ = {};
|
|
|
15148
16626
|
};
|
|
15149
16627
|
page.on("response", handleResponse);
|
|
15150
16628
|
page.locator("#editor_pannel #bottom_main #js_button_area #js_send button").click();
|
|
16629
|
+
await page.waitForTimeout(200);
|
|
16630
|
+
if (params.settingInfo.timer) {
|
|
16631
|
+
await page.locator(".mass-send .mass-send__td-setting", {
|
|
16632
|
+
hasText: "定时发表"
|
|
16633
|
+
}).locator(".weui-desktop-switch__box").check();
|
|
16634
|
+
let dateD = Number(TimeFormatter.format(params.settingInfo.timer, "d"));
|
|
16635
|
+
let nowD = Number(TimeFormatter.format(Date.now(), "d"));
|
|
16636
|
+
await page.locator(".mass-send__timer .weui-desktop-form__dropdown__dt").click();
|
|
16637
|
+
const dropMenu = page.locator(".mass-send__timer .weui-desktop-dropdown-menu").locator(".weui-desktop-dropdown__list-ele");
|
|
16638
|
+
await dropMenu.filter({
|
|
16639
|
+
hasText: dateD == nowD ? "今天" : dateD == nowD + 1 ? "明天" : TimeFormatter.format(params.settingInfo.timer, "M月d日")
|
|
16640
|
+
}).click();
|
|
16641
|
+
const timeDropMenu = page.locator(".mass-send__timer .weui-desktop-picker__time:visible");
|
|
16642
|
+
await timeDropMenu.locator(".weui-desktop-form__input").fill(TimeFormatter.format(params.settingInfo.timer, "hh:mm"));
|
|
16643
|
+
await timeDropMenu.locator("i.weui-desktop-icon__time").click();
|
|
16644
|
+
}
|
|
15151
16645
|
});
|
|
16646
|
+
await page.waitForTimeout(200);
|
|
16647
|
+
if (params.masssend) {
|
|
16648
|
+
const times = Number(await page.locator(".mass-send .multi-sent__notice_time").locator('div[style="display: none;"] div:not([style*="display: none"]) span').textContent());
|
|
16649
|
+
if (0 == times) return {
|
|
16650
|
+
code: 200,
|
|
16651
|
+
message: "今日群发次数用尽,请明天再试。",
|
|
16652
|
+
data: ""
|
|
16653
|
+
};
|
|
16654
|
+
await page.locator(".mass-send .mass_send__notify").locator(".weui-desktop-switch__box").check();
|
|
16655
|
+
} else await page.locator(".mass-send .mass_send__notify").locator(".weui-desktop-switch__box").uncheck();
|
|
16656
|
+
await page.waitForTimeout(200);
|
|
15152
16657
|
await page.waitForSelector('.new_mass_send_dialog .weui-desktop-dialog__wrp:not([style*="display: none"])', {
|
|
15153
16658
|
state: "visible"
|
|
15154
16659
|
});
|
|
@@ -15157,6 +16662,19 @@ var __webpack_exports__ = {};
|
|
|
15157
16662
|
state: "visible"
|
|
15158
16663
|
});
|
|
15159
16664
|
await page.locator(".double_check_dialog .weui-desktop-dialog .weui-desktop-dialog__ft button.weui-desktop-btn_primary").click();
|
|
16665
|
+
await page.waitForTimeout(2000);
|
|
16666
|
+
const originalCheckDialog = page.locator('div[data-transfer="true"][width\\.number="800"][height\\.number="800"] .weui-desktop-dialog__title');
|
|
16667
|
+
if (await originalCheckDialog.count() > 0) {
|
|
16668
|
+
if (await originalCheckDialog.textContent() === "原创校验") {
|
|
16669
|
+
const popMassend = page.locator('div[data-transfer="true"][width\\.number="800"][height\\.number="800"]');
|
|
16670
|
+
await popMassend.locator(".weui-desktop-btn_primary", {
|
|
16671
|
+
hasText: "下一步"
|
|
16672
|
+
}).click();
|
|
16673
|
+
await popMassend.locator(".weui-desktop-btn_primary", {
|
|
16674
|
+
hasText: "继续"
|
|
16675
|
+
}).click();
|
|
16676
|
+
}
|
|
16677
|
+
}
|
|
15160
16678
|
try {
|
|
15161
16679
|
const startTime = Date.now();
|
|
15162
16680
|
await new Promise(async (resolve, reject)=>{
|
|
@@ -15884,7 +17402,7 @@ var __webpack_exports__ = {};
|
|
|
15884
17402
|
return executeAction(xiaohongshuPublish_mock_mockAction, xiaohongshuPublish_rpa_rpaAction)(task, params);
|
|
15885
17403
|
};
|
|
15886
17404
|
var package_namespaceObject = {
|
|
15887
|
-
i8: "1.2.
|
|
17405
|
+
i8: "1.2.11"
|
|
15888
17406
|
};
|
|
15889
17407
|
class Action {
|
|
15890
17408
|
constructor(task){
|
|
@@ -15909,9 +17427,30 @@ var __webpack_exports__ = {};
|
|
|
15909
17427
|
searchToutiaoTopicList(params) {
|
|
15910
17428
|
return this.bindTask(searchToutiaoTopicList, params);
|
|
15911
17429
|
}
|
|
17430
|
+
TTFansExport(params) {
|
|
17431
|
+
return this.bindTask(TTFansExport, params);
|
|
17432
|
+
}
|
|
17433
|
+
XhsFansExport(params) {
|
|
17434
|
+
return this.bindTask(XhsFansExport, params);
|
|
17435
|
+
}
|
|
17436
|
+
WxFansExport(params) {
|
|
17437
|
+
return this.bindTask(WxFansExport, params);
|
|
17438
|
+
}
|
|
17439
|
+
BjhFansExport(params) {
|
|
17440
|
+
return this.bindTask(BjhFansExport, params);
|
|
17441
|
+
}
|
|
17442
|
+
searchToutiaoUserID(params) {
|
|
17443
|
+
return this.bindTask(searchToutiaoUserInfo, params);
|
|
17444
|
+
}
|
|
17445
|
+
searchToutiaoLocation(params) {
|
|
17446
|
+
return this.bindTask(searchToutiaoLocation, params);
|
|
17447
|
+
}
|
|
15912
17448
|
getToutiaoConfig(params) {
|
|
15913
17449
|
return this.bindTask(getToutiaoConfig, params);
|
|
15914
17450
|
}
|
|
17451
|
+
getBaijiahaoConfig(params) {
|
|
17452
|
+
return this.bindTask(getBaijiahaoConfig, params);
|
|
17453
|
+
}
|
|
15915
17454
|
baijiahaoPublish(params) {
|
|
15916
17455
|
return this.bindTask(baijiahaoPublish, params);
|
|
15917
17456
|
}
|