blue
1 year ago
committed by
Gitee
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with
9 additions and
1 deletions
-
im-server/src/main/java/com/bx/imserver/netty/processor/LoginProcessor.java
-
im-uniapp/main.js
-
im-uniapp/package.json
|
|
@ -38,6 +38,7 @@ public class LoginProcessor extends AbstractMessageProcessor<IMLoginInfo> { |
|
|
if (!JwtUtil.checkSign(loginInfo.getAccessToken(), accessTokenSecret)) { |
|
|
if (!JwtUtil.checkSign(loginInfo.getAccessToken(), accessTokenSecret)) { |
|
|
ctx.channel().close(); |
|
|
ctx.channel().close(); |
|
|
log.warn("用户token校验不通过,强制下线,token:{}", loginInfo.getAccessToken()); |
|
|
log.warn("用户token校验不通过,强制下线,token:{}", loginInfo.getAccessToken()); |
|
|
|
|
|
return; |
|
|
} |
|
|
} |
|
|
String strInfo = JwtUtil.getInfo(loginInfo.getAccessToken()); |
|
|
String strInfo = JwtUtil.getInfo(loginInfo.getAccessToken()); |
|
|
IMSessionInfo sessionInfo = JSON.parseObject(strInfo, IMSessionInfo.class); |
|
|
IMSessionInfo sessionInfo = JSON.parseObject(strInfo, IMSessionInfo.class); |
|
|
|
|
|
@ -22,7 +22,12 @@ import switchBar from '@/components/bar/switch-bar' |
|
|
// import VConsole from 'vconsole'
|
|
|
// import VConsole from 'vconsole'
|
|
|
// new VConsole();
|
|
|
// new VConsole();
|
|
|
// #endif
|
|
|
// #endif
|
|
|
|
|
|
// #ifdef H5
|
|
|
|
|
|
import ImageResize from "quill-image-resize-mp"; |
|
|
|
|
|
import Quill from "quill"; |
|
|
|
|
|
window.Quill = Quill; |
|
|
|
|
|
window.ImageResize = { default: ImageResize }; |
|
|
|
|
|
// #endif
|
|
|
// #ifdef H5
|
|
|
// #ifdef H5
|
|
|
import * as recorder from './common/recorder-h5'; |
|
|
import * as recorder from './common/recorder-h5'; |
|
|
// #endif
|
|
|
// #endif
|
|
|
|
|
|
@ -5,6 +5,8 @@ |
|
|
}, |
|
|
}, |
|
|
"dependencies": { |
|
|
"dependencies": { |
|
|
"pinyin-pro": "^3.23.1", |
|
|
"pinyin-pro": "^3.23.1", |
|
|
|
|
|
"quill": "^1.3.7", |
|
|
|
|
|
"quill-image-resize-mp": "^3.0.1", |
|
|
"vconsole": "^3.15.1" |
|
|
"vconsole": "^3.15.1" |
|
|
} |
|
|
} |
|
|
} |
|
|
} |