Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
O
ocrCloudPlatForm
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
ocr-cloud-platform
ocrCloudPlatForm
Commits
b03307c1
Commit
b03307c1
authored
Jan 05, 2024
by
黄明步
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
76615edf
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
+4
-1
src/main/java/com/gxmailu/ocrCloudPlatform/service/impl/RetransmissionService.java
+4
-1
No files found.
src/main/java/com/gxmailu/ocrCloudPlatform/service/impl/RetransmissionService.java
View file @
b03307c1
...
@@ -257,7 +257,7 @@ public class RetransmissionService {
...
@@ -257,7 +257,7 @@ public class RetransmissionService {
saveToAppAbilityRecordAll
(
result
,
request
,
ocrServerAddress
.
getIp
(),
fileId
);
saveToAppAbilityRecordAll
(
result
,
request
,
ocrServerAddress
.
getIp
(),
fileId
);
return
result
;
return
result
;
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
log
.
error
(
"OCR云平台接口异常"
,
e
);
log
.
error
(
"OCR云平台接口异常
,
"
,
e
);
return
new
OcrResult
(
"007500"
,
"识别失败,请重试"
,
null
,
DateUtil
.
date
());
return
new
OcrResult
(
"007500"
,
"识别失败,请重试"
,
null
,
DateUtil
.
date
());
}
finally
{
}
finally
{
FileUtil
.
del
(
tempSaveDir
);
FileUtil
.
del
(
tempSaveDir
);
...
@@ -732,6 +732,7 @@ public class RetransmissionService {
...
@@ -732,6 +732,7 @@ public class RetransmissionService {
return
;
return
;
}
}
record
.
setIp
(
clientIP
);
record
.
setIp
(
clientIP
);
mapper
.
updateById
(
record
);
// log.info("修改id:{}的真实客户端请求ip结果:{}", id, mapper.updateById(record));
// log.info("修改id:{}的真实客户端请求ip结果:{}", id, mapper.updateById(record));
AppAbilityRecordAll
recordAll
=
recordAllMapper
.
selectById
(
id
);
AppAbilityRecordAll
recordAll
=
recordAllMapper
.
selectById
(
id
);
if
(
recordAll
==
null
)
{
if
(
recordAll
==
null
)
{
...
@@ -742,6 +743,7 @@ public class RetransmissionService {
...
@@ -742,6 +743,7 @@ public class RetransmissionService {
if
(
StrUtil
.
isEmpty
(
recordAll
.
getServerIp
()))
{
if
(
StrUtil
.
isEmpty
(
recordAll
.
getServerIp
()))
{
recordAll
.
setServerIp
(
serverIp
);
recordAll
.
setServerIp
(
serverIp
);
}
}
recordAllMapper
.
insert
(
recordAll
);
// log.info("添加id:{} 的数据到recordAll持久化保存结果:{}", recordAll.getId(), recordAllMapper.insert(recordAll));
// log.info("添加id:{} 的数据到recordAll持久化保存结果:{}", recordAll.getId(), recordAllMapper.insert(recordAll));
}
else
{
}
else
{
AppAbilityRecordAll
newRecordAll
=
new
AppAbilityRecordAll
();
AppAbilityRecordAll
newRecordAll
=
new
AppAbilityRecordAll
();
...
@@ -750,6 +752,7 @@ public class RetransmissionService {
...
@@ -750,6 +752,7 @@ public class RetransmissionService {
if
(
StrUtil
.
isEmpty
(
newRecordAll
.
getServerIp
()))
{
if
(
StrUtil
.
isEmpty
(
newRecordAll
.
getServerIp
()))
{
newRecordAll
.
setServerIp
(
serverIp
);
newRecordAll
.
setServerIp
(
serverIp
);
}
}
recordAllMapper
.
updateById
(
newRecordAll
);
// log.info("修改recordAll中id:{} 的数据结果:{}", newRecordAll.getId(), recordAllMapper.updateById(newRecordAll));
// log.info("修改recordAll中id:{} 的数据结果:{}", newRecordAll.getId(), recordAllMapper.updateById(newRecordAll));
}
}
}
}
...
...
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