Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
trismegisto-services
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mauro Paolo Josue Zuñiga Mallqui
trismegisto-services
Commits
86cfbfc3
Commit
86cfbfc3
authored
Aug 09, 2025
by
Mauro Paolo Josue Zuñiga Mallqui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIXED] FILENAME DEL DRIVE Y API QR
parent
31a49cfa
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
bbvaService.java
...titask/trismegistoservices/services/BBVA/bbvaService.java
+1
-1
DriveService.java
...ask/trismegistoservices/services/google/DriveService.java
+3
-1
No files found.
src/main/java/web/multitask/trismegistoservices/services/BBVA/bbvaService.java
View file @
86cfbfc3
...
...
@@ -124,7 +124,7 @@ public class bbvaService {
int
amountsAmount
=
json
.
getInt
(
"amount"
);
String
amountsCurrency
=
"PEN"
;
String
billMaturityDate
=
json
.
getString
(
"maturityDate"
);
String
originContractId
=
"00110
661000100081541
"
;
String
originContractId
=
"00110
161000100022636
"
;
String
productTypeId
=
"QR_CODE"
;
String
additionalPaymentFieldId
=
"0"
;
String
additionalPaymentFieldValue
=
json
.
getString
(
"documentNumber"
);
...
...
src/main/java/web/multitask/trismegistoservices/services/google/DriveService.java
View file @
86cfbfc3
...
...
@@ -82,8 +82,10 @@ public class DriveService implements IDriveService {
InputStream
inputStream
=
googleConfig
.
getDrive
().
files
().
get
(
file_id
).
executeMediaAsInputStream
();
String
uudi
=
java
.
util
.
UUID
.
randomUUID
().
toString
();
String
nameFile
;
boolean
isHasExtension
=
false
;
try
{
nameFile
=
System
.
getProperty
(
"java.io.tmpdir"
)
+
"/"
+
uudi
+
"."
+
file
.
getName
().
split
(
"\\."
)[
1
];
isHasExtension
=
true
;
}
catch
(
Exception
e
){
nameFile
=
System
.
getProperty
(
"java.io.tmpdir"
)
+
"/"
+
uudi
+
".pdf"
;
}
...
...
@@ -101,7 +103,7 @@ public class DriveService implements IDriveService {
return
ResponseEntity
.
ok
().
body
(
new
JSONObject
()
.
put
(
"base64"
,
base64String
)
.
put
(
"file_name"
,
nameFile
)
.
put
(
"file_name"
,
file
.
getName
()
+
(
isHasExtension
?
""
:
".pdf"
)
)
.
put
(
"status"
,
true
)
.
put
(
"message"
,
"OK"
).
toMap
()
);
...
...
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