Commit a4021e6a a4021e6a04ba261c2809b2127a0290c0dc5b5660 by 鲁二龙

//处理接口调用 中文不显示问题

1 parent 3b9a946b
......@@ -62,6 +62,7 @@ import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.util.CollectionUtils;
import java.nio.charset.StandardCharsets;
import java.time.LocalDateTime;
import java.util.*;
import java.util.concurrent.TimeUnit;
......@@ -1147,7 +1148,9 @@ public class UserOperationServiceImpl implements UserOperationService {
@Override
public boolean addCollection(String content) {
try {
log.info("receive UserCollection add message, content {}", content);
//处理接口调用 中文不显示问题
content = new String(Base64.getDecoder().decode(content.getBytes(StandardCharsets.UTF_8)));
log.info("receive UserCollection add message, content {}" , content);
JSONObject jsonObject = JSONObject.parseObject(content);
String platformAccount = jsonObject.getString("platformAccount");
String data = jsonObject.getString("data");
......