飞书消息--去掉英文下的横杠

This commit is contained in:
zhn
2022-10-26 15:37:52 +08:00
parent c763273622
commit d15254b4d9
@@ -325,7 +325,6 @@ public class FeishuServiceImpl implements IFeishuService {
contentSb.append("{\"tag\": \"hr\"},");
contentSb.append("{");
contentSb.append("\"actions\": [");
contentSb.append("{");
@@ -366,8 +365,6 @@ public class FeishuServiceImpl implements IFeishuService {
JSONObject.parseObject(JSONArray.parseArray(jsonObject.get("elements").toString()).get(1).toString());
JSONObject elementFour =
JSONObject.parseObject(JSONArray.parseArray(jsonObject.get("elements").toString()).get(3).toString());
JSONObject elementFive =
JSONObject.parseObject(JSONArray.parseArray(jsonObject.get("elements").toString()).get(4).toString());
//处理内容中的双引号(将尖括号替换成双引号)
JSONObject elementOne = getJsonObject(jsonObject, content);
@@ -378,7 +375,6 @@ public class FeishuServiceImpl implements IFeishuService {
jsonArray.add(elementTwo);
jsonArray.add(elementThree);
jsonArray.add(elementFour);
jsonArray.add(elementFive);
jsonObject.put("elements",jsonArray);
// 设置请求参数
@@ -439,9 +435,6 @@ public class FeishuServiceImpl implements IFeishuService {
contentSb.append("},");
};
contentSb.append("{\"tag\": \"hr\"},");
contentSb.append("{");
contentSb.append("\"actions\": [");
contentSb.append("{");