Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
android
/
dayu
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
40bc267e
authored
6 years ago
by
罗翻
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
android v1.93
parent
06462cdb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
app/src/main/java/com/dayu/bigfish/utils/HxManager.java
baseSDK/src/main/java/com/dayu/utils/UserManager.java
app/src/main/java/com/dayu/bigfish/utils/HxManager.java
View file @
40bc267e
...
@@ -192,8 +192,7 @@ public class HxManager {
...
@@ -192,8 +192,7 @@ public class HxManager {
//注册环信消息监听
//注册环信消息监听
EMClient
.
getInstance
().
chatManager
().
addMessageListener
(
msgListener
);
EMClient
.
getInstance
().
chatManager
().
addMessageListener
(
msgListener
);
//注册一个监听连接状态的listener
//注册一个监听连接状态的listener
//TODO 记得把环信单账号登录打开
EMClient
.
getInstance
().
addConnectionListener
(
new
MyConnectionListener
());
// EMClient.getInstance().addConnectionListener(new MyConnectionListener());
}
}
//实现ConnectionListener接口
//实现ConnectionListener接口
...
...
This diff is collapsed.
Click to expand it.
baseSDK/src/main/java/com/dayu/utils/UserManager.java
View file @
40bc267e
...
@@ -65,7 +65,8 @@ public class UserManager {
...
@@ -65,7 +65,8 @@ public class UserManager {
UserInfo
userInfo
=
getUser
();
UserInfo
userInfo
=
getUser
();
if
(
userInfo
!=
null
)
{
if
(
userInfo
!=
null
)
{
//有数据
//有数据
return
!
TextUtils
.
isEmpty
(
userInfo
.
getAccountId
())
&&
!
TextUtils
.
isEmpty
(
userInfo
.
getAccountName
());
return
!
TextUtils
.
isEmpty
(
userInfo
.
getAccountId
())
&&
!
TextUtils
.
isEmpty
(
userInfo
.
getAccountName
())
&&
userInfo
.
getRoles
()
!=
null
;
}
}
return
false
;
return
false
;
}
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment