()
| 834 | } |
| 835 | } |
| 836 | async function hitokoto() { |
| 837 | // 随机一言 |
| 838 | try { |
| 839 | let options = { |
| 840 | url: "https://v1.hitokoto.cn/", |
| 841 | headers: {}, |
| 842 | }, |
| 843 | result = await httpRequest(options); |
| 844 | return result.hitokoto; |
| 845 | } catch (error) { |
| 846 | console.log(error); |
| 847 | } |
| 848 | } |
| 849 | // 双平台log输出 |
| 850 | function DoubleLog(data) { |
| 851 | if ($.isNode()) { |
nothing calls this directly
no test coverage detected