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
a4d0c29c
Commit
a4d0c29c
authored
Feb 02, 2024
by
ddx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加日志
parent
b4080090
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
8 deletions
+9
-8
tax-file-face/file-face-web/src/test/java/com/yxcheng/file/web/controller/test/FileManageTest.java
+6
-5
tax-token/token-service/src/main/java/com/tax/token/service/impl/TkTokenServiceImpl.java
+3
-3
No files found.
tax-file-face/file-face-web/src/test/java/com/yxcheng/file/web/controller/test/FileManageTest.java
View file @
a4d0c29c
...
...
@@ -12,8 +12,8 @@ import java.util.Map;
public
class
FileManageTest
{
String
accessKeyID
=
"bwgf-limit"
;
static
String
accessKeySecret
=
"bw@2u9%5Ts#2"
;
static
String
host
=
"http://127.0.0.1:8767"
;
//
static String host = "https://api.taxservices.cn";
//
static String host = "http://127.0.0.1:8767";
static
String
host
=
"https://api.taxservices.cn"
;
// static String host = "http://60.205.138.54:8767";
@Test
public
void
testHandApplyFile
()
throws
Exception
{
...
...
@@ -82,11 +82,12 @@ public class FileManageTest {
String
url
=
host
+
"/invoicefile/batchTaxManage"
;
Map
param
=
new
HashMap
<>();
param
.
put
(
"userCode"
,
"e
daxia
ng"
);
param
.
put
(
"userCode"
,
"e
changche
ng"
);
param
.
put
(
"errorCode"
,
"4042"
);
System
.
out
.
println
(
url
);
String
ret
=
HttpHelper
.
postWithJson
(
url
,
JSON
.
toJSONString
(
param
));
System
.
out
.
println
(
ret
);
System
.
out
.
println
(
JSON
.
toJSONString
(
param
));
// ResponseContent ret = HttpHelper.postJsonEntity(url,JSON.toJSONString(param));
// System.out.println(ret.getContent());
}
public
static
String
getSign
(
String
data
){
...
...
tax-token/token-service/src/main/java/com/tax/token/service/impl/TkTokenServiceImpl.java
View file @
a4d0c29c
...
...
@@ -279,7 +279,7 @@ public class TkTokenServiceImpl implements TkTokenService {
}
else
{
updFlag
=
true
;
}
if
(
updFlag
&&
!
tkToken
.
getFunctionNo
()
.
equals
(
"01"
))
{
if
(
updFlag
&&
!
functionNo
.
equals
(
"01"
))
{
TkToken
updToken
=
queryToken
(
taxno
,
zoneCode
,
userCode
);
if
(
null
!=
updToken
)
{
tkToken
.
setId
(
updToken
.
getId
());
...
...
@@ -306,7 +306,7 @@ public class TkTokenServiceImpl implements TkTokenService {
result
.
setData
(
json
);
}
}
else
{
if
(
tkToken
.
getFunctionNo
()
.
equals
(
"01"
))
{
if
(
functionNo
.
equals
(
"01"
))
{
JSONObject
json
=
new
JSONObject
();
json
.
put
(
"cookie"
,
token
);
json
.
put
(
"authCode"
,
tkToken
.
getAuthCode
());
...
...
@@ -321,7 +321,7 @@ public class TkTokenServiceImpl implements TkTokenService {
}
}
}
logger
.
info
(
uuId
+
" getRealCookie
is "
+
result
.
toString
());
logger
.
info
(
uuId
+
" getRealCookie
function is "
+
functionNo
+
",result is "
+
result
.
toString
());
tkRealTokenLogService
.
saveRealTokenLog
(
uuId
,
tkToken
,
"0"
);
return
result
;
}
...
...
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