创建聊天室名字乱码

莫语 11月前 291

传数据没问题 日志打印也没问题,数据库显示的是乱码

14:54:44.228 [http-nio-2023-exec-1] INFO  o.a.c.c.C.[.[.[/] - [log,173] - Initializing Spring DispatcherServlet 'dispatcherServlet'
14:54:44.426 [http-nio-2023-exec-1] INFO  c.w.s.u.AdminHttpUtils - [httpJsonPost,131] - http request:/admin/chatroom/create content: {"chatroomId":"","title":"单身男女聊天室","desc":"单身男女聊天室","portrait":"https://img0.baidu.com/it/u=2640018399,4072074912&fm=253&fmt=auto&app=138&f=JPG?w=500&h=500","state":0}
14:54:44.639 [http-nio-2023-exec-1] INFO  c.w.s.u.AdminHttpUtils - [httpJsonPost,153] - http request response content: {"code":0,"msg":"success","result":{"chatroomId":"dhgqmws2k"}}
 @Override
    public IMResult<OutputCreateChatroom> createImChatRoom(String chatroomId, String portrait, String title, String desc) {
        try {
            IMResult<OutputCreateChatroom> chatroom = ChatroomAdmin.createChatroom(chatroomId, title, desc, portrait, null, 0);
            if (chatroom == null || chatroom.getErrorCode() != ErrorCode.ERROR_CODE_SUCCESS) {
                throw new RuntimeException("创建聊天室失败:"+chatroom.getMsg());
            }
            return chatroom;
        } catch (Exception e) {
            throw new RuntimeException(e);
        }
    }
最新回复 (2)
返回