Showing
2 changed files
with
2 additions
and
16 deletions
| ... | @@ -95,7 +95,7 @@ | ... | @@ -95,7 +95,7 @@ |
| 95 | if(!(!!this.ocr && this.ocr.json_data)) return | 95 | if(!(!!this.ocr && this.ocr.json_data)) return |
| 96 | const params = new URLSearchParams({disable: 1,...options}); | 96 | const params = new URLSearchParams({disable: 1,...options}); |
| 97 | 97 | ||
| 98 | - const url = `/orders/preview-pdf?${params.toString()}`; | 98 | + const url = `/preview-pdf?${params.toString()}`; |
| 99 | 99 | ||
| 100 | let form = document.createElement('form') | 100 | let form = document.createElement('form') |
| 101 | 101 | ... | ... |
| ... | @@ -15,19 +15,5 @@ | ... | @@ -15,19 +15,5 @@ |
| 15 | */ | 15 | */ |
| 16 | 16 | ||
| 17 | Route::get('/', [OcrController::class,'index']); | 17 | Route::get('/', [OcrController::class,'index']); |
| 18 | -Route::get('/test', function () { | 18 | +Route::get('/preview-pdf', [OcrController::class,'preview_pdf'])->name('preview_pdf'); |
| 19 | - $file = 'D:\\key\\id_rsa_oms_base_test.pem'; | ||
| 20 | - | ||
| 21 | - return response()->json([ | ||
| 22 | - 'php_sapi' => PHP_SAPI, | ||
| 23 | - 'current_user' => get_current_user(), | ||
| 24 | - 'script_owner' => getmyuid(), | ||
| 25 | - 'cwd' => getcwd(), | ||
| 26 | - 'file_exists' => file_exists($file), | ||
| 27 | - 'is_readable' => is_readable($file), | ||
| 28 | - 'realpath' => realpath($file), | ||
| 29 | - 'file_get_contents'=> @file_get_contents($file) !== false ? 'OK' : error_get_last(), | ||
| 30 | - ]); | ||
| 31 | -}); | ||
| 32 | - | ||
| 33 | Route::post('/import-pdf', [OcrController::class,'import_pdf'])->name('import_pdf'); | 19 | Route::post('/import-pdf', [OcrController::class,'import_pdf'])->name('import_pdf'); | ... | ... |
-
Please register or sign in to post a comment