http请求中ImChannelContext 获取不到的问题

This commit is contained in:
刘斌 2021-12-09 16:56:16 +08:00
parent 69739a5885
commit d128d2ab1e

View File

@ -5,6 +5,7 @@ import cn.hutool.core.convert.Convert;
import cn.hutool.core.io.FileUtil;
import cn.hutool.core.util.ClassUtil;
import org.apache.commons.lang3.StringUtils;
import org.jim.core.ImChannelContext;
import org.jim.core.ImConst;
import org.jim.core.exception.ImException;
import org.jim.core.http.*;
@ -16,7 +17,6 @@ import org.jim.server.util.ClassUtils;
import org.jim.server.util.HttpResps;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.tio.core.ChannelContext;
import org.tio.utils.cache.guava.GuavaCache;
import java.beans.PropertyDescriptor;
@ -149,7 +149,7 @@ public class DefaultHttpRequestHandler implements IHttpRequestHandler,ImConst.Ht
paramValues[i] = httpSession;
} else if (paramType.isAssignableFrom(HttpConfig.class)) {
paramValues[i] = httpConfig;
} else if (paramType.isAssignableFrom(ChannelContext.class)) {
} else if (paramType.isAssignableFrom(ImChannelContext.class)) {
paramValues[i] = request.getImChannelContext();
} else {
if (params != null) {