()
| 390 | return encrypted; |
| 391 | } |
| 392 | async function hitokoto() { // 随机一言 |
| 393 | try { |
| 394 | let options = { |
| 395 | url: 'https://v1.hitokoto.cn/', |
| 396 | headers: {} |
| 397 | }; |
| 398 | //console.log(options); |
| 399 | let result = await httpRequest(options); |
| 400 | //console.log(result); |
| 401 | return result.hitokoto |
| 402 | } catch (error) { |
| 403 | console.log(error); |
| 404 | } |
| 405 | } |
| 406 | // 双平台log输出 |
| 407 | function DoubleLog(data) { |
| 408 | if ($.isNode()) { |
nothing calls this directly
no test coverage detected