Commit 592b70cf authored by Sarun Mungthanya's avatar Sarun Mungthanya
Browse files

issue missing code

parent c873e083
......@@ -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 = [];
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment