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
cae3f207
Commit
cae3f207
authored
Sep 06, 2023
by
zhengnw@sobot.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
common 1.4.0 添加sdk 登录
parent
057b0bfd
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
5 deletions
+29
-5
MainActivity.java
app/src/main/java/com/sobot/moduletest/MainActivity.java
+13
-0
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
+0
-0
LoginUserManager.java
...main/java/com/sobot/common/login/db/LoginUserManager.java
+4
-3
SobotCallBaseCode.java
.../java/com/sobot/common/login/model/SobotCallBaseCode.java
+11
-1
No files found.
app/src/main/java/com/sobot/moduletest/MainActivity.java
View file @
cae3f207
...
...
@@ -8,6 +8,9 @@ import android.content.Intent;
import
android.net.Uri
;
import
android.widget.ImageView
;
import
com.sobot.common.login.SobotLoginTools
;
import
com.sobot.common.login.callback.SobotResultBlock
;
import
com.sobot.common.login.callback.SobotResultCode
;
import
com.sobot.common.utils.SobotImageUtils
;
import
com.sobot.pictureframe.SobotBitmapUtil
;
import
com.sobot.utils.SobotLogUtils
;
...
...
@@ -220,6 +223,16 @@ public class MainActivity extends SobotBaseActivity {
// SobotLoginTools.getInstance().setLoginUser(sa);
// SobotServiceInfoModel ccc=new SobotServiceInfoModel();
// SobotLoginTools.getInstance().setServiceInfo(ccc);
// SobotLoginTools.getInstance().doLogin(MainActivity.this, MainActivity.this, "https://api-c.soboten.com/text", "zhengnawei@sobot.com", "znw123456","", new SobotResultBlock() {
// @Override
// public void resultBolok(SobotResultCode code, String msg, Object obj) {
// SobotLoginTools.getInstance().checkExpiresToken();
// SobotLogUtils.i(SobotLoginTools.getInstance().getAccessToken()+"");
// SobotLogUtils.i(SobotLoginTools.getInstance().getTempId());
// SobotLogUtils.i(SobotLoginTools.getInstance().getToken()+"");
// }
// });
}
@Override
...
...
sobot_common/sobot-common-publish-mavencentral.gradle
View file @
cae3f207
...
...
@@ -13,7 +13,7 @@ ext {
PUBLISH_GROUP_ID
=
"com.sobot.library"
//项目包名
PUBLISH_ARTIFACT_ID
=
'sobotcommon'
//项目名
// PUBLISH_ARTIFACT_ID = 'sobotcommon_x' //项目名
PUBLISH_VERSION
=
'1.3.9.
5
'
//版本号
PUBLISH_VERSION
=
'1.3.9.
6
'
//版本号
}
...
...
sobot_common/src/main/java/com/sobot/common/login/SobotLoginTools.java
View file @
cae3f207
This diff is collapsed.
Click to expand it.
sobot_common/src/main/java/com/sobot/common/login/db/LoginUserManager.java
View file @
cae3f207
...
...
@@ -55,9 +55,10 @@ public class LoginUserManager extends SobotCommonDao<LoginUserEntity> {
model
.
setStaffName
(
cursor
.
getString
(
cursor
.
getColumnIndex
(
"staffName"
)));
model
.
setMaxServiceCount
(
cursor
.
getInt
(
cursor
.
getColumnIndex
(
"maxServiceCount"
)));
model
.
setBlackFunction
(
cursor
.
getInt
(
cursor
.
getColumnIndex
(
"blackFunction"
)));
String
transferFunction
=
cursor
.
getString
(
cursor
.
getColumnIndex
(
"transferFunction"
));
if
(!
SobotStringUtils
.
isEmpty
(
transferFunction
)){
Map
<
String
,
Boolean
>
map
=
SobotGsonUtil
.
jsonToMaps
(
transferFunction
);
model
.
setTransferFunction
(
cursor
.
getInt
(
cursor
.
getColumnIndex
(
"transferFunction"
)));
String
ticketFunction
=
cursor
.
getString
(
cursor
.
getColumnIndex
(
"ticketFunction"
));
if
(!
SobotStringUtils
.
isEmpty
(
ticketFunction
)){
Map
<
String
,
Boolean
>
map
=
SobotGsonUtil
.
jsonToMaps
(
ticketFunction
);
model
.
setTicketFunction
(
map
);
}
model
.
setFace
(
cursor
.
getString
(
cursor
.
getColumnIndex
(
"face"
)));
...
...
sobot_common/src/main/java/com/sobot/common/login/model/Sobot
BaseCodeThird
.java
→
sobot_common/src/main/java/com/sobot/common/login/model/Sobot
CallBaseCode
.java
View file @
cae3f207
...
...
@@ -2,11 +2,13 @@ package com.sobot.common.login.model;
import
java.io.Serializable
;
import
java.util.List
;
public
class
Sobot
BaseCodeThird
<
T
>
implements
Serializable
{
public
class
Sobot
CallBaseCode
<
T
>
implements
Serializable
{
public
T
item
;
public
List
<
T
>
items
;
public
String
retMsg
;
public
String
retCode
;
public
int
totalCount
;
...
...
@@ -15,6 +17,14 @@ public class SobotBaseCodeThird<T> implements Serializable {
return
item
;
}
public
List
<
T
>
getItems
()
{
return
items
;
}
public
void
setItems
(
List
<
T
>
items
)
{
this
.
items
=
items
;
}
public
void
setItem
(
T
item
)
{
this
.
item
=
item
;
}
...
...
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