|
|
@ -25,10 +25,10 @@ router.post('/getLos', async (req, res) => { |
|
|
|
try { |
|
|
|
try { |
|
|
|
// 执行
|
|
|
|
// 执行
|
|
|
|
let los = await fpService.get_los(url, param, html, loginCookieStr, publicKey); |
|
|
|
let los = await fpService.get_los(url, param, html, loginCookieStr, publicKey); |
|
|
|
if (!los || los['hd'] === '') { |
|
|
|
// if (!los || los['hd'] === '') {
|
|
|
|
console.error(`${uuid}; 生成错误!请检查 html 或 cookie, los:${JSON.stringify(los)}`) |
|
|
|
// console.error(`${uuid}; 生成错误!请检查 html 或 cookie, los:${JSON.stringify(los)}`)
|
|
|
|
return res.status(500).send('生成错误!请检查 html 或 cookie') |
|
|
|
// return res.status(500).send('生成错误!请检查 html 或 cookie')
|
|
|
|
} |
|
|
|
// }
|
|
|
|
return res.status(200).send(los); |
|
|
|
return res.status(200).send(los); |
|
|
|
} catch (e) { |
|
|
|
} catch (e) { |
|
|
|
console.error(e.stack) |
|
|
|
console.error(e.stack) |
|
|
|