Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
MultipleSourceSecurity
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
周宗顺
MultipleSourceSecurity
Commits
15a4ed15
Commit
15a4ed15
authored
Apr 02, 2026
by
AllenChen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
commit
parent
7727f186
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
179 additions
and
530 deletions
+179
-530
RepeatedlyReadFilter.java
...in/java/org/ta/pddserver/config/RepeatedlyReadFilter.java
+1
-1
PddOpenController.java
...n/java/org/ta/pddserver/controller/PddOpenController.java
+3
-5
PddOverseaPriceTool.java
...main/java/org/ta/pddserver/utils/PddOverseaPriceTool.java
+3
-3
UniPassUtil.java
...ver/src/main/java/org/ta/pddserver/utils/UniPassUtil.java
+12
-5
CommonTest.java
PddServer/src/test/java/org/ta/pddserver/CommonTest.java
+2
-2
custom-ai-service.log
logs/custom-ai-service.log
+158
-514
custom-ai-service.log.2026-03-29.0.gz
logs/custom-ai-service.log.2026-03-29.0.gz
+0
-0
No files found.
PddServer/src/main/java/org/ta/pddserver/config/RepeatedlyReadFilter.java
View file @
15a4ed15
...
@@ -24,7 +24,7 @@ public class RepeatedlyReadFilter implements Filter {
...
@@ -24,7 +24,7 @@ public class RepeatedlyReadFilter implements Filter {
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
log
.
info
(
"RepeatedlyReadFilter doFilter ok"
);
//
log.info("RepeatedlyReadFilter doFilter ok");
}
}
}
}
PddServer/src/main/java/org/ta/pddserver/controller/PddOpenController.java
View file @
15a4ed15
...
@@ -179,7 +179,7 @@ public class PddOpenController {
...
@@ -179,7 +179,7 @@ public class PddOpenController {
1
,
1
,
"SENDTORECEVER"
.
equals
(
queryRequest
.
getSegmentCode
())
"SENDTORECEVER"
.
equals
(
queryRequest
.
getSegmentCode
())
);
);
log
.
info
(
"mailNo:{} weight:{}, fee:{}"
,
packageDetailEntity
.
getMailNo
(),
currWeight
,
currFee
);
//
log.info("mailNo:{} weight:{}, fee:{}", packageDetailEntity.getMailNo(), currWeight, currFee);
weight
+=
currWeight
;
weight
+=
currWeight
;
freightFee
+=
currFee
;
freightFee
+=
currFee
;
...
@@ -200,7 +200,7 @@ public class PddOpenController {
...
@@ -200,7 +200,7 @@ public class PddOpenController {
mailDetailEntity
.
getHeight
(),
mailDetailEntity
.
getHeight
(),
mailDetailEntity
.
getWeight
(),
mailDetailEntity
.
getWeight
(),
"SENDTORECEVER"
.
equals
(
queryRequest
.
getSegmentCode
()));
"SENDTORECEVER"
.
equals
(
queryRequest
.
getSegmentCode
()));
log
.
info
(
"mailNo:{} weight:{}, fee:{}"
,
mailDetailEntity
.
getMailNo
(),
currWeight
);
//
log.info("mailNo:{} weight:{}, fee:{}", mailDetailEntity.getMailNo(), currWeight);
weight
+=
currWeight
;
weight
+=
currWeight
;
}
}
}
}
...
@@ -210,9 +210,7 @@ public class PddOpenController {
...
@@ -210,9 +210,7 @@ public class PddOpenController {
1
,
1
,
"SENDTORECEVER"
.
equals
(
queryRequest
.
getSegmentCode
())
"SENDTORECEVER"
.
equals
(
queryRequest
.
getSegmentCode
())
);
);
log
.
info
(
"weight:{}, fee:{}"
,
weight
,
freightFee
);
// log.info("weight:{}, fee:{}", weight, freightFee);
}
}
}
}
...
...
PddServer/src/main/java/org/ta/pddserver/utils/PddOverseaPriceTool.java
View file @
15a4ed15
...
@@ -74,13 +74,13 @@ public class PddOverseaPriceTool {
...
@@ -74,13 +74,13 @@ public class PddOverseaPriceTool {
// 判断重量是否超重
// 判断重量是否超重
//分析重量
//分析重量
log
.
info
(
"weight = {}, initialWeight = {}, "
,
weight
,
initialWeight
);
//
log.info("weight = {}, initialWeight = {}, ", weight, initialWeight);
if
(
weight
>
initialWeight
)
{
if
(
weight
>
initialWeight
)
{
//计算超出重量
//计算超出重量
weight
=
weight
-
initialWeight
;
weight
=
weight
-
initialWeight
;
excess
=
excessPrice
*
((
int
)
Math
.
ceil
(
1.0
*
weight
/
excessWeight
));
excess
=
excessPrice
*
((
int
)
Math
.
ceil
(
1.0
*
weight
/
excessWeight
));
}
}
log
.
info
(
"excess = {}"
,
excess
);
//
log.info("excess = {}", excess);
//计算价格
//计算价格
if
(
type
.
equals
(
"NORMAL"
))
{
if
(
type
.
equals
(
"NORMAL"
))
{
...
@@ -90,7 +90,7 @@ public class PddOverseaPriceTool {
...
@@ -90,7 +90,7 @@ public class PddOverseaPriceTool {
}
else
{
}
else
{
price
=
price
+
sInitalPrice
+
excess
;
price
=
price
+
sInitalPrice
+
excess
;
}
}
log
.
info
(
"price = {}"
,
price
);
//
log.info("price = {}", price);
return
price
;
return
price
;
}
}
...
...
PddServer/src/main/java/org/ta/pddserver/utils/UniPassUtil.java
View file @
15a4ed15
...
@@ -86,14 +86,21 @@ public class UniPassUtil {
...
@@ -86,14 +86,21 @@ public class UniPassUtil {
// UniPassPersonalClearanceCheckResult result = new UniPassPersonalClearanceCheckResult();
// UniPassPersonalClearanceCheckResult result = new UniPassPersonalClearanceCheckResult();
// result.setSuccess(false);
// result.setSuccess(false);
try
{
try
{
ResponseEntity
<
String
>
resp
=
restTemplate
.
getForEntity
(
url
,
String
.
class
)
;
ResponseEntity
<
String
>
resp
=
null
;
int
retry
=
0
;
int
retry
=
0
;
// while (!resp.getStatusCode().is2xxSuccessful() & retry < 5) {
while
(
resp
==
null
||
((!
resp
.
getStatusCode
().
is2xxSuccessful
())
&&
retry
<
5
)){
// retry++;
retry
++;
// resp = new RestTemplate().getForEntity(url, String.class);
try
{
// }
resp
=
restTemplate
.
getForEntity
(
url
,
String
.
class
);
}
catch
(
Exception
e
)
{
log
.
error
(
"获取unipass通关符号验证信息失败"
);
}
log
.
info
(
"获取个人通关信息结果失败,重新获取"
);
}
// result.setMsg("查询验证失败!");
// result.setMsg("查询验证失败!");
if
(
resp
.
getStatusCode
().
is2xxSuccessful
())
{
if
(
resp
.
getStatusCode
().
is2xxSuccessful
())
{
log
.
info
(
"查询成功"
);
XmlMapper
xmlMapper
=
new
XmlMapper
();
XmlMapper
xmlMapper
=
new
XmlMapper
();
String
body
=
resp
.
getBody
();
String
body
=
resp
.
getBody
();
...
...
PddServer/src/test/java/org/ta/pddserver/CommonTest.java
View file @
15a4ed15
...
@@ -655,8 +655,8 @@ public class CommonTest {
...
@@ -655,8 +655,8 @@ public class CommonTest {
*/
*/
@Test
@Test
public
void
destroy
()
{
public
void
destroy
()
{
String
mailNo
=
"
SF3298513357701
"
;
String
mailNo
=
"
46100002122388
"
;
String
expressCode
=
"
SF
"
;
String
expressCode
=
"
JGWL
"
;
String
action
=
"destroy"
;
String
action
=
"destroy"
;
PddServiceConsoFirstBizActionNotifyRequest
notifyRequest
=
new
PddServiceConsoFirstBizActionNotifyRequest
();
PddServiceConsoFirstBizActionNotifyRequest
notifyRequest
=
new
PddServiceConsoFirstBizActionNotifyRequest
();
notifyRequest
.
setProviderCode
(
PddAPIConfig
.
PROVIDER_CODE
);
notifyRequest
.
setProviderCode
(
PddAPIConfig
.
PROVIDER_CODE
);
...
...
logs/custom-ai-service.log
View file @
15a4ed15
This diff is collapsed.
Click to expand it.
logs/custom-ai-service.log.2026-03-29.0.gz
0 → 100644
View file @
15a4ed15
File added
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