Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Dung Diego
/
ocr-tool
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Authored by
Dung Diego
2026-07-16 11:55:21 +0700
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Commit
34aaa72effc92ff4c90b3b8d0cb863cbdf87e5c0
34aaa72e
1 parent
0a178a48
up
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
16 deletions
resources/views/dashboard.blade.php
routes/web.php
resources/views/dashboard.blade.php
View file @
34aaa72
...
...
@@ -95,7 +95,7 @@
if
(
!
(
!!
this
.
ocr
&&
this
.
ocr
.
json_data
))
return
const
params
=
new
URLSearchParams
({
disable
:
1
,...
options
});
const
url
=
`/
orders/
preview-pdf?
${
params
.
toString
()}
`
;
const
url
=
`/preview-pdf?
${
params
.
toString
()}
`
;
let
form
=
document
.
createElement
(
'form'
)
...
...
routes/web.php
View file @
34aaa72
...
...
@@ -15,19 +15,5 @@
*/
Route
::
get
(
'/'
,
[
OcrController
::
class
,
'index'
]);
Route
::
get
(
'/test'
,
function
()
{
$file
=
'D:\\key\\id_rsa_oms_base_test.pem'
;
return
response
()
->
json
([
'php_sapi'
=>
PHP_SAPI
,
'current_user'
=>
get_current_user
(),
'script_owner'
=>
getmyuid
(),
'cwd'
=>
getcwd
(),
'file_exists'
=>
file_exists
(
$file
),
'is_readable'
=>
is_readable
(
$file
),
'realpath'
=>
realpath
(
$file
),
'file_get_contents'
=>
@
file_get_contents
(
$file
)
!==
false
?
'OK'
:
error_get_last
(),
]);
});
Route
::
get
(
'/preview-pdf'
,
[
OcrController
::
class
,
'preview_pdf'
])
->
name
(
'preview_pdf'
);
Route
::
post
(
'/import-pdf'
,
[
OcrController
::
class
,
'import_pdf'
])
->
name
(
'import_pdf'
);
...
...
Please
register
or
sign in
to post a comment