Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sarun Mungthanya
SpnPatch-Laravel
Commits
592b70cf
Commit
592b70cf
authored
Dec 13, 2024
by
Sarun Mungthanya
Browse files
issue missing code
parent
c873e083
Changes
1
Show whitespace changes
Inline
Side-by-side
app/Http/Controllers/MasterFileController.php
View file @
592b70cf
...
...
@@ -8,6 +8,7 @@ use Illuminate\Http\Request;
use
Illuminate\Support\Facades\DB
;
use
Illuminate\Support\Facades\Storage
;
use
Illuminate\Support\Facades\Http
;
use
Illuminate\Support\Facades\Log
;
class
MasterFileController
extends
Controller
{
...
...
@@ -20,6 +21,7 @@ class MasterFileController extends Controller
public
function
createPatch
(
Request
$request
)
{
// $request->validate([
// 'format_file_id' => 'required|exists:conf_format_file,formatservice_ID',
// 'file' => 'required|file|max:12209752',
...
...
@@ -31,6 +33,7 @@ class MasterFileController extends Controller
// ]);
$file
=
$request
->
file
(
'file'
);
$filePath
=
$file
->
getRealPath
();
if
(
isset
(
$request
->
truncateGoods
)
&&
(
$request
->
format_file_id
==
196
))
{
...
...
@@ -241,6 +244,7 @@ class MasterFileController extends Controller
while
(
!
feof
(
$fileHandle
))
{
$text
=
fgets
(
$fileHandle
);
try
{
$text
=
iconv
(
'TIS-620'
,
'UTF-8'
,
$text
);
...
...
@@ -249,7 +253,7 @@ class MasterFileController extends Controller
$text
=
iconv
(
'Windows-874'
,
'UTF-8'
,
$text
);
}
// Log::info($text);
$X
=
$Y
=
$Z
=
0
;
$primaryKeyConditions
=
[];
...
...
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