Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
I
IMSDK_Demo
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
王文龙
IMSDK_Demo
Commits
cbd845b5
Commit
cbd845b5
authored
Jan 15, 2021
by
王文龙
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[update]更新libsdk修复vivo推送注销异常,修复清源接口错误信息解析
parent
5429cbf7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
5 deletions
+26
-5
build.gradle
app/build.gradle
+1
-1
ContactListFragment.java
.../main/java/com/offcn/imclient/ui/ContactListFragment.java
+17
-3
LoginActivity.java
app/src/main/java/com/offcn/imclient/ui/LoginActivity.java
+8
-1
No files found.
app/build.gradle
View file @
cbd845b5
...
...
@@ -94,7 +94,7 @@ dependencies {
implementation
'com.android.support:multidex:1.0.3'
implementation
(
"com.offcn.live:base:2.5.0-s18"
)
implementation
(
"com.offcn.live:imsdk-kit:1.0.0.4
3
"
)
implementation
(
"com.offcn.live:imsdk-kit:1.0.0.4
4
"
)
// DB
implementation
'org.greenrobot:greendao:3.2.2'
...
...
app/src/main/java/com/offcn/imclient/ui/ContactListFragment.java
View file @
cbd845b5
...
...
@@ -286,14 +286,28 @@ public class ContactListFragment extends BaseFragment {
Utils
.
logout
(
getActivity
());
startActivity
(
new
Intent
(
getActivity
(),
LoginActivity
.
class
));
getActivity
().
finish
();
CommonUtils
.
showToast
(
getActivity
(),
response
.
getString
(
"msg"
));
String
errorMsg
=
"登录异常"
;
if
(
response
.
has
(
"msg"
))
{
errorMsg
=
response
.
getString
(
"msg"
);
}
if
(
response
.
has
(
"message"
))
{
errorMsg
=
response
.
getString
(
"message"
);
}
CommonUtils
.
showToast
(
getActivity
(),
errorMsg
);
}
else
{
showErrorView
();
CommonUtils
.
showToast
(
getActivity
(),
response
.
getString
(
"msg"
));
String
errorMsg
=
"获取联系人失败"
;
if
(
response
.
has
(
"msg"
))
{
errorMsg
=
response
.
getString
(
"msg"
);
}
if
(
response
.
has
(
"message"
))
{
errorMsg
=
response
.
getString
(
"message"
);
}
CommonUtils
.
showToast
(
getActivity
(),
errorMsg
);
}
}
catch
(
Exception
e
)
{
showErrorView
();
CommonUtils
.
showToast
(
getActivity
(),
"
联系人获取
失败"
);
CommonUtils
.
showToast
(
getActivity
(),
"
获取联系人
失败"
);
}
}
},
new
Response
.
ErrorListener
()
{
...
...
app/src/main/java/com/offcn/imclient/ui/LoginActivity.java
View file @
cbd845b5
...
...
@@ -148,7 +148,14 @@ public class LoginActivity extends BaseActivity {
CommonUtils
.
showToast
(
LoginActivity
.
this
,
"用户信息获取失败"
);
}
}
else
{
CommonUtils
.
showToast
(
LoginActivity
.
this
,
response
.
getString
(
"msg"
));
String
errorMsg
=
"登录失败"
;
if
(
response
.
has
(
"msg"
))
{
errorMsg
=
response
.
getString
(
"msg"
);
}
if
(
response
.
has
(
"message"
))
{
errorMsg
=
response
.
getString
(
"message"
);
}
CommonUtils
.
showToast
(
LoginActivity
.
this
,
errorMsg
);
}
}
catch
(
Exception
e
)
{
CommonUtils
.
showToast
(
LoginActivity
.
this
,
"用户信息解析失败"
);
...
...
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