|
|
|
@ -18,6 +18,8 @@ import java.util.List;
|
|
|
|
|
import java.util.Map;
|
|
|
|
|
import java.util.concurrent.ConcurrentHashMap;
|
|
|
|
|
|
|
|
|
|
import static cn.jlw.Interceptor.AuthenticationInterceptor.indexTokenMap;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* @author Binary Wang
|
|
|
|
|
*/
|
|
|
|
@ -88,6 +90,7 @@ public class MsgHandler extends AbstractHandler {
|
|
|
|
|
map.put("status", "success");
|
|
|
|
|
map.put("token", tokenNullable);
|
|
|
|
|
WE_CHAT_MAP.put(userId, map);
|
|
|
|
|
indexTokenMap.put(userId, tokenNullable);
|
|
|
|
|
// WebSocketServer.sendToUser("token="+token, userId);
|
|
|
|
|
return WxMpXmlOutMessage.TEXT().content("登录成功").toUser(fromUser)
|
|
|
|
|
.fromUser(wxMessage.getToUser())
|
|
|
|
|