Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
Y
yzg-util
Project
Project
Details
Activity
Releases
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
YZG
yzg-util
Commits
3b5a7ee8
Commit
3b5a7ee8
authored
May 13, 2019
by
yanzg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加对Android的支持
parent
51d2352c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
TokenServiceCall.java
.../java/com/yanzuoguang/cloud/service/TokenServiceCall.java
+8
-2
No files found.
yzg-util-cloud/src/main/java/com/yanzuoguang/cloud/service/TokenServiceCall.java
View file @
3b5a7ee8
...
@@ -21,19 +21,25 @@ public class TokenServiceCall implements TokenLoad {
...
@@ -21,19 +21,25 @@ public class TokenServiceCall implements TokenLoad {
private
TokenService
tokenService
=
null
;
private
TokenService
tokenService
=
null
;
private
boolean
initFlag
=
false
;
private
int
flagCount
=
50
;
public
TokenServiceCall
()
{
public
TokenServiceCall
()
{
TokenHelper
.
setTokenLoad
(
this
);
TokenHelper
.
setTokenLoad
(
this
);
}
}
private
void
init
()
{
private
void
init
()
{
if
(
tokenService
!=
null
)
{
return
;
}
if
(
flagCount
<
1
)
{
return
;
}
try
{
try
{
tokenService
=
context
.
getBean
(
TokenService
.
class
);
tokenService
=
context
.
getBean
(
TokenService
.
class
);
}
catch
(
Exception
ex
)
{
}
catch
(
Exception
ex
)
{
Log
.
error
(
TokenServiceCall
.
class
,
"获取登录服务失败:"
+
ex
.
getMessage
(),
ex
);
Log
.
error
(
TokenServiceCall
.
class
,
"获取登录服务失败:"
+
ex
.
getMessage
(),
ex
);
}
finally
{
}
finally
{
initFlag
=
true
;
flagCount
--
;
}
}
}
}
...
...
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