Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tax-sys-nacos
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
caoxiaohong
tax-sys-nacos
Commits
95465a26
Commit
95465a26
authored
Apr 11, 2025
by
ddx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
e
parent
e14d8ffa
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
5 additions
and
6 deletions
+5
-6
tax-token/token-common/src/main/java/com/tax/token/thirdService/TokenThirdServiceI.java
+1
-1
tax-token/token-common/src/main/java/com/tax/token/thirdService/impl/GetTokenFromDx.java
+2
-2
tax-token/token-common/src/main/java/com/tax/token/thirdService/impl/GetTokenFromEleJsonTax.java
+1
-1
tax-token/token-service/src/main/java/com/tax/token/service/impl/TkTokenServiceImpl.java
+1
-2
No files found.
tax-token/token-common/src/main/java/com/tax/token/thirdService/TokenThirdServiceI.java
View file @
95465a26
...
...
@@ -9,5 +9,5 @@ import java.io.IOException;
import
java.util.Map
;
public
interface
TokenThirdServiceI
{
public
Map
<
String
,
Object
>
invoke
(
String
uuIdFlag
,
TkToken
tkToken
,
TkZoneInfo
tkZoneInfo
,
TkServer
tkServer
,
boolean
isFirst
)
throws
IOException
,
Http
Exception
;
public
Map
<
String
,
Object
>
invoke
(
String
uuIdFlag
,
TkToken
tkToken
,
TkZoneInfo
tkZoneInfo
,
TkServer
tkServer
,
boolean
isFirst
)
throws
Exception
;
}
tax-token/token-common/src/main/java/com/tax/token/thirdService/impl/GetTokenFromDx.java
View file @
95465a26
...
...
@@ -22,7 +22,7 @@ public class GetTokenFromDx implements TokenThirdServiceI {
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
GetTokenFromDx
.
class
);
@Override
public
Map
<
String
,
Object
>
invoke
(
String
uuIdFlag
,
TkToken
tokenEntity
,
TkZoneInfo
zoneInfo
,
TkServer
tkServer
,
boolean
isFirst
)
throws
IOException
,
Http
Exception
{
public
Map
<
String
,
Object
>
invoke
(
String
uuIdFlag
,
TkToken
tokenEntity
,
TkZoneInfo
zoneInfo
,
TkServer
tkServer
,
boolean
isFirst
)
throws
Exception
{
Map
<
String
,
Object
>
resultMap
=
new
HashMap
<>();
String
taxno
=
tokenEntity
.
getTaxno
();
String
url
=
tkServer
.
getReqUrl
()
+
"?taxno="
+
taxno
;
...
...
@@ -48,7 +48,7 @@ public class GetTokenFromDx implements TokenThirdServiceI {
}
public
static
void
main
(
String
[]
args
)
throws
IOException
,
Http
Exception
{
public
static
void
main
(
String
[]
args
)
throws
Exception
{
TkToken
tokenEntity
=
new
TkToken
();
TkZoneInfo
zoneInfo
=
new
TkZoneInfo
();
TkServer
tkServer
=
new
TkServer
();
...
...
tax-token/token-common/src/main/java/com/tax/token/thirdService/impl/GetTokenFromEleJsonTax.java
View file @
95465a26
...
...
@@ -22,7 +22,7 @@ public class GetTokenFromEleJsonTax implements TokenThirdServiceI {
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
GetTokenFromEleJsonTax
.
class
);
@Override
public
Map
<
String
,
Object
>
invoke
(
String
uuIdFlag
,
TkToken
tokenEntity
,
TkZoneInfo
zoneInfo
,
TkServer
tkServer
,
boolean
isFirst
)
throws
IOException
,
Http
Exception
{
public
Map
<
String
,
Object
>
invoke
(
String
uuIdFlag
,
TkToken
tokenEntity
,
TkZoneInfo
zoneInfo
,
TkServer
tkServer
,
boolean
isFirst
)
throws
Exception
{
Map
<
String
,
Object
>
resultMap
=
new
HashMap
<>();
String
taxno
=
tokenEntity
.
getTaxno
();
...
...
tax-token/token-service/src/main/java/com/tax/token/service/impl/TkTokenServiceImpl.java
View file @
95465a26
...
...
@@ -465,7 +465,6 @@ public class TkTokenServiceImpl implements TkTokenService {
transErrorCode
(
tkToken
);
}
}
catch
(
Exception
e
){
e
.
printStackTrace
();
if
(!
isFirst
&&
e
instanceof
SocketTimeoutException
){
String
times
=
redisService
.
get
(
getTokenOverTimesName
(
tkZoneInfo
.
getZoneCode
(),
tkToken
.
getUserCode
()));
if
(
StringUtils
.
isBlank
(
times
)){
...
...
@@ -479,7 +478,7 @@ public class TkTokenServiceImpl implements TkTokenService {
}
tkToken
.
setTokenCode
(
"9999"
);
tkToken
.
setTokenMessage
(
"请求税局失败"
);
logger
.
error
(
uuIdFlag
+
" "
+
tkToken
.
getUserCode
()
+
" taxno "
+
tkToken
.
getTaxno
()
+
" get token error:"
+
e
.
getMessage
()
);
logger
.
error
(
uuIdFlag
+
" "
+
tkToken
.
getUserCode
()
+
" taxno "
+
tkToken
.
getTaxno
()
+
" get token error:"
,
e
);
}
}
else
if
(
TokenConstants
.
SERVER_WEBSOCKET
.
equals
(
tkServer
.
getTokenType
())){
token
=
getTokenFromSocket
(
tkToken
,
tkZoneInfo
,
tkServer
);
...
...
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