Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
Sobot_module_Dev
Project
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
sobot_android
Sobot_module_Dev
Commits
aa7ead48
Commit
aa7ead48
authored
Aug 01, 2024
by
郭倩芳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
common 添加已读未读开关readFlag
parent
ba120197
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
1 deletion
+20
-1
sobot-common-publish-mavencentral.gradle
sobot_common/sobot-common-publish-mavencentral.gradle
+1
-1
SobotLoginTools.java
...src/main/java/com/sobot/common/login/SobotLoginTools.java
+1
-0
OnlineUserEntity.java
...n/java/com/sobot/common/login/model/OnlineUserEntity.java
+9
-0
SobotServiceInfoModel.java
...a/com/sobot/common/login/model/SobotServiceInfoModel.java
+9
-0
No files found.
sobot_common/sobot-common-publish-mavencentral.gradle
View file @
aa7ead48
...
...
@@ -12,7 +12,7 @@ task androidSourcesJar(type: Jar) {
ext
{
PUBLISH_GROUP_ID
=
"com.sobot.library"
//项目包名
PUBLISH_ARTIFACT_ID
=
'sobotcommon_x'
//项目名
PUBLISH_VERSION
=
'1.7.
7.3
'
//版本号
PUBLISH_VERSION
=
'1.7.
8
'
//版本号
}
...
...
sobot_common/src/main/java/com/sobot/common/login/SobotLoginTools.java
View file @
aa7ead48
...
...
@@ -890,6 +890,7 @@ public class SobotLoginTools {
tempServiceInfoModel
.
setTransferAuditFlag
(
userEntity
.
getTransferAuditFlag
());
tempServiceInfoModel
.
setSortFlag
(
userEntity
.
getSortFlag
());
tempServiceInfoModel
.
setDefaultAppLoginStatus
(
userEntity
.
getDefaultAppLoginStatus
());
tempServiceInfoModel
.
setReadFlag
(
userEntity
.
getReadFlag
());
setServiceInfo
(
tempServiceInfoModel
);
SobotSharedPreferencesUtil
.
getInstance
(
context
).
put
(
SobotLoginConstant
.
SOBOT_LOGIN_USER_INFO
,
tempServiceInfoModel
);
if
(
resultBlock
!=
null
)
{
...
...
sobot_common/src/main/java/com/sobot/common/login/model/OnlineUserEntity.java
View file @
aa7ead48
...
...
@@ -25,6 +25,7 @@ public class OnlineUserEntity implements Serializable {
private
String
robotVersion
;
//机器人,查询版本v6/v1
private
String
onlineVersion
;
//在线,查询版本v6/v1
private
String
defaultAppLoginStatus
;
//登录的默认状态
private
int
readFlag
=
0
;
//已读未读 0-关闭,1-开启,readFlag=1时需要把收到的消息及历史记录中的消息 readStatus为1的标为未读,2标为已读「0-未标记,1-未读,2-已读」
@Expose
...
...
@@ -162,4 +163,12 @@ public class OnlineUserEntity implements Serializable {
public
void
setDefaultAppLoginStatus
(
String
defaultAppLoginStatus
)
{
this
.
defaultAppLoginStatus
=
defaultAppLoginStatus
;
}
public
int
getReadFlag
()
{
return
readFlag
;
}
public
void
setReadFlag
(
int
readFlag
)
{
this
.
readFlag
=
readFlag
;
}
}
sobot_common/src/main/java/com/sobot/common/login/model/SobotServiceInfoModel.java
View file @
aa7ead48
...
...
@@ -120,6 +120,7 @@ public class SobotServiceInfoModel implements Serializable {
private
long
login_time
;
//登录时间戳
private
String
defaultAppLoginStatus
;
//默认登录状态
private
int
readFlag
;
//已读未读开关 0-关闭,1-开启
public
static
final
String
LOGIN_TIME
=
"login_time"
;
...
...
@@ -483,4 +484,12 @@ public class SobotServiceInfoModel implements Serializable {
public
void
setOnlineVersion
(
String
onlineVersion
)
{
this
.
onlineVersion
=
onlineVersion
;
}
public
int
getReadFlag
()
{
return
readFlag
;
}
public
void
setReadFlag
(
int
readFlag
)
{
this
.
readFlag
=
readFlag
;
}
}
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