From fb3dad3128e59aa571b272a88e0aa10f0ff77c2a Mon Sep 17 00:00:00 2001 From: CNawalol <61059886+CNawalol@users.noreply.github.com> Date: Mon, 1 Aug 2022 09:46:14 +0800 Subject: [PATCH] Update Main.kt --- src/main/kotlin/cn/awalol/ZhihuResolverBot/Main.kt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/kotlin/cn/awalol/ZhihuResolverBot/Main.kt b/src/main/kotlin/cn/awalol/ZhihuResolverBot/Main.kt index 42f25fe..adb6c0a 100644 --- a/src/main/kotlin/cn/awalol/ZhihuResolverBot/Main.kt +++ b/src/main/kotlin/cn/awalol/ZhihuResolverBot/Main.kt @@ -130,6 +130,11 @@ suspend fun main() { } } } + //在末尾添加文章来源 + result.add(ElementBean( + tag = "p", + children = listOf("文章来源: $url") + )) val json = result.toJSONString() logger.debug(json)