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
976a7e6c
Commit
976a7e6c
authored
Apr 01, 2025
by
ddx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add quickLogin interface
parent
d37ae891
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
1 deletions
+16
-1
tax-token/token-common/src/main/java/com/tax/token/constants/TokenConstants.java
+2
-1
tax-token/token-web/src/main/java/com/tax/token/web/controller/TokenController.java
+14
-0
No files found.
tax-token/token-common/src/main/java/com/tax/token/constants/TokenConstants.java
View file @
976a7e6c
...
...
@@ -246,7 +246,8 @@ public class TokenConstants {
*/
public
static
final
String
ZONE_FLAG_YES
=
"1"
;
/**99-发票云 01-电子税局*/
/**99-发票云 01-电子税局
02-快捷登录
*/
public
static
final
String
FUNCTION_NO_FPY
=
"99"
;
public
static
final
String
FUNCTION_NO_DZSJ
=
"01"
;
public
static
final
String
FUNCTION_NO_KJDL
=
"02"
;
}
tax-token/token-web/src/main/java/com/tax/token/web/controller/TokenController.java
View file @
976a7e6c
...
...
@@ -69,6 +69,20 @@ public class TokenController extends BaseClientController {
return
tokenService
.
getRealCookie
(
uuId
,
cookieReq
.
getTaxno
(),
cookieReq
.
getZoneCode
(),
cookieReq
.
getAccessKeyID
(),
true
,
TokenConstants
.
FUNCTION_NO_FPY
,
cookieReq
.
getUserInfoJson
(),
cookieReq
.
getCheckType
(),
cookieReq
.
getSite
(),
cookieReq
.
getTarget
());
}
@RequestMapping
(
value
={
"/quickLogin"
}
,
method
=
RequestMethod
.
POST
)
@LogT
public
JsonResult
<
String
>
quickLogin
(
@RequestBody
CookieReq
cookieReq
){
CrRpcResult
crRpcResult
=
userClient
.
isSafe
(
cookieReq
);
if
(!
checkUserSafe
(
crRpcResult
)){
return
JsonResult
.
errorResult
(
crRpcResult
.
getCode
(),
crRpcResult
.
getMessage
());
}
if
(
cookieReq
.
checkParamNull
()
||
!
ZoneUtil
.
dqList
.
contains
(
cookieReq
.
getZoneCode
()))
{
return
JsonResult
.
errorResult
(
ResultEnum
.
param_error
.
getCode
(),
ResultEnum
.
param_error
.
getMessage
());
}
String
uuId
=
UUIDGenerator
.
generate
();
return
tokenService
.
getRealCookie
(
uuId
,
cookieReq
.
getTaxno
(),
cookieReq
.
getZoneCode
(),
cookieReq
.
getAccessKeyID
(),
true
,
TokenConstants
.
FUNCTION_NO_KJDL
,
cookieReq
.
getUserInfoJson
(),
cookieReq
.
getCheckType
(),
cookieReq
.
getSite
(),
cookieReq
.
getTarget
());
}
@RequestMapping
(
value
={
"/getEtaxCookie"
,
"/checkEtaxLoginInfo"
}
,
method
=
RequestMethod
.
POST
)
@LogT
public
JsonResult
<
String
>
getEtaxCookie
(
@RequestBody
CookieReq
cookieReq
){
...
...
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