Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
P
poc-api
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
1
Merge Requests
1
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
poc
poc-api
Commits
db1c5daf
Commit
db1c5daf
authored
Sep 01, 2025
by
R10
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
单据识别 链接bugfix
parent
b034b1b3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
ExtractionRestImpl.java
...ava/cn/com/poc/covenant/rest/impl/ExtractionRestImpl.java
+0
-1
TextInClient.java
...com/poc/thirdparty/resource/text_in/api/TextInClient.java
+7
-5
No files found.
src/main/java/cn/com/poc/covenant/rest/impl/ExtractionRestImpl.java
View file @
db1c5daf
...
...
@@ -198,7 +198,6 @@ public class ExtractionRestImpl implements ExtractionRest {
String
fileUrl
=
ossservice
.
upload
(
file
.
getInputStream
(),
type
,
file
.
getContentType
());
String
workspaceId
=
fmxConfigService
.
getParam
(
"textin.docflow.workspaceId"
);
if
(
StringUtils
.
isBlank
(
workspaceId
)){
throw
new
BusinessException
(
"请配置workspaceId"
);
...
...
src/main/java/cn/com/poc/thirdparty/resource/text_in/api/TextInClient.java
View file @
db1c5daf
...
...
@@ -351,17 +351,19 @@ public class TextInClient {
.
addFormDataPart
(
"file"
,
file
.
getName
(),
RequestBody
.
create
(
null
,
file
))
.
build
();
UrlBuilder
urlBuilder
=
UrlBuilder
.
of
(
"https://docflow.textin.com/api/app-api/sip/platform/v2/file/upload"
);
StringBuilder
stringBuilder
=
new
StringBuilder
(
"https://docflow.textin.com/api/app-api/sip/platform/v2/file/upload"
);
if
(
StringUtils
.
isNotBlank
(
fileUploadRequest
.
getWorkspaceid
()))
{
urlBuilder
.
addQuery
(
"workspace_id"
,
fileUploadRequest
.
getWorkspaceid
());
logger
.
info
(
"------workspace_id-----:"
,
fileUploadRequest
.
getWorkspaceid
());
// urlBuilder.addQuery("workspace_id", fileUploadRequest.getWorkspaceid());
// urlBuilder.
stringBuilder
.
append
(
"?workspace_id="
+
fileUploadRequest
.
getWorkspaceid
());
}
if
(
StringUtils
.
isNotBlank
(
fileUploadRequest
.
getCategory
()))
{
urlBuilder
.
addQuery
(
"category"
,
fileUploadRequest
.
getCategory
());
stringBuilder
.
append
(
"&category="
+
fileUploadRequest
.
getCategory
());
}
Request
request
=
new
Request
.
Builder
()
.
url
(
urlBuilder
.
toURL
())
.
url
(
stringBuilder
.
toString
())
.
method
(
"POST"
,
body
)
.
addHeader
(
"Content-Type"
,
"multipart/form-data"
)
.
addHeader
(
"x-ti-app-id"
,
appId_for_docFlow
)
...
...
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