优化:`飞书群机器人`和`飞书企业应用`支持自定义`消息卡片`模板 #381

This commit is contained in:
pppscn 2024-01-12 15:28:27 +08:00
parent 8deafd586f
commit 8c897971bf
1 changed files with 0 additions and 1 deletions

View File

@ -232,7 +232,6 @@ data class MsgInfo(
private fun jsonInnerStr(string: String?): String { private fun jsonInnerStr(string: String?): String {
if (string == null) return "null" if (string == null) return "null"
if (string == "") return "\"\""
val jsonStr: String = Gson().toJson(string) val jsonStr: String = Gson().toJson(string)
return if (jsonStr.length >= 2) jsonStr.substring(1, jsonStr.length - 1) else jsonStr return if (jsonStr.length >= 2) jsonStr.substring(1, jsonStr.length - 1) else jsonStr