Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
T
TDPIMS-SDK
Project
Project
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
zhengfunan
TDPIMS-SDK
Commits
41dfaa78
Commit
41dfaa78
authored
Jul 20, 2023
by
zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
83035537
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
NewSample.java
src/main/java/com/tongda/tdpimssdk/examples/NewSample.java
+2
-3
RemoteSaAuthHandler.java
...java/com/tongda/tdpimssdk/remote/RemoteSaAuthHandler.java
+6
-0
No files found.
src/main/java/com/tongda/tdpimssdk/examples/NewSample.java
View file @
41dfaa78
...
...
@@ -11,10 +11,9 @@ import java.util.List;
public
class
NewSample
{
public
static
void
main
(
String
[]
args
)
{
RemoteSaAuthHandler
rsh
=
new
RemoteSaAuthHandler
(
"guantiantian"
,
"q1w2e3r4"
,
"121.199.160.117"
,
9000
);
rsh
.
setAppInstance
(
"150.158.75.213"
,
8080
,
"TXPIMDB"
);
rsh
.
loginGetSaToken
();
rsh
.
serverIP
=
"150.158.75.213"
;
rsh
.
serverPort
=
8080
;
rsh
.
dbName
=
"TXPIMDB"
;
//初始化远程查询对象
RemoteTdPimHelper
rqh
=
new
RemoteTdPimHelper
(
rsh
);
...
...
src/main/java/com/tongda/tdpimssdk/remote/RemoteSaAuthHandler.java
View file @
41dfaa78
...
...
@@ -21,6 +21,12 @@ public class RemoteSaAuthHandler {
this
.
saServerPort
=
saServerPort
;
}
public
void
setAppInstance
(
String
serverID
,
int
serverPort
,
String
dbName
)
{
this
.
serverIP
=
serverID
;
this
.
serverPort
=
serverPort
;
this
.
dbName
=
dbName
;
}
public
String
loginGetSaToken
(){
String
url
=
"http://"
+
this
.
saServerIP
+
":"
+
this
.
saServerPort
+
"/sso/doLogin"
;
this
.
saToken
=
PimHttpUtil
.
loginGetSaToken
(
url
,
this
.
user
,
this
.
password
);
...
...
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