Browse Source

接收数据

master
lijunjie 3 years ago
parent
commit
0148ea04c9
  1. 23
      app/Http/Controllers/IndexController.php
  2. BIN
      public/image/pelma/image1.png
  3. BIN
      public/image/pelma/image2.png
  4. BIN
      public/image/pelma/image3.png
  5. BIN
      public/image/pelma/image4.png
  6. BIN
      public/image/pelma/image5.png
  7. BIN
      public/image/pelma/image6.png
  8. 0
      public/script/http/lora.js
  9. 0
      public/style/http/lora.css
  10. 4
      resources/views/http/lora.blade.php
  11. 4
      routes/web.php

23
app/Http/Controllers/IndexController.php

@ -4,6 +4,8 @@ namespace App\Http\Controllers;
use Illuminate\Routing\Controller as BaseController; use Illuminate\Routing\Controller as BaseController;
use Illuminate\Support\Facades\Cache;
use Illuminate\Support\Facades\Log;
class IndexController extends BaseController class IndexController extends BaseController
{ {
@ -239,9 +241,26 @@ class IndexController extends BaseController
} }
public function index2() public function lora()
{ {
return view('http.index2'); return view('http.lora');
}
public function getPelmaStore()
{
echo Cache::get('pelma');
return;
}
public function store()
{
// echo Cache::get('pelma');
$data = request('pelma');
Cache::put('pelma', $data);
Log::info($data);
return 'ok';
} }
public function loraData() public function loraData()

BIN
public/image/pelma/image1.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

BIN
public/image/pelma/image2.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

BIN
public/image/pelma/image3.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1005 B

BIN
public/image/pelma/image4.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 1013 B

BIN
public/image/pelma/image5.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 88 KiB

BIN
public/image/pelma/image6.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

0
public/script/http/index2.js → public/script/http/lora.js

0
public/style/http/index2.css → public/style/http/lora.css

4
resources/views/http/index2.blade.php → resources/views/http/lora.blade.php

@ -2,7 +2,7 @@
<html lang="zh-CN" style="height: 100%"> <html lang="zh-CN" style="height: 100%">
<head> <head>
<meta charset="utf-8"> <meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="/style/http/index2.css"> <link rel="stylesheet" type="text/css" href="/style/http/lora.css">
<script type="text/javascript" src="/script/jquery.min.js"></script> <script type="text/javascript" src="/script/jquery.min.js"></script>
</head> </head>
@ -112,6 +112,6 @@
</body> </body>
<script type="text/javascript" src="/script/echarts.min.js"></script> <script type="text/javascript" src="/script/echarts.min.js"></script>
<script type="text/javascript" src="/script/http/index2.js"></script> <script type="text/javascript" src="/script/http/lora.js"></script>
</html> </html>

4
routes/web.php

@ -15,7 +15,9 @@ use Illuminate\Support\Facades\Route;
Route::get('/', [\App\Http\Controllers\IndexController::class, 'index']); Route::get('/', [\App\Http\Controllers\IndexController::class, 'index']);
Route::get('/index2', [\App\Http\Controllers\IndexController::class, 'index2']); Route::get('/lora', [\App\Http\Controllers\IndexController::class, 'lora']);
Route::get('/getPelmaStore', [\App\Http\Controllers\IndexController::class, 'getPelmaStore']);
Route::get('/store', [\App\Http\Controllers\IndexController::class, 'store']);
Route::get('/tabularData', [\App\Http\Controllers\IndexController::class, 'tabularData']); Route::get('/tabularData', [\App\Http\Controllers\IndexController::class, 'tabularData']);
Route::get('/loraData', [\App\Http\Controllers\IndexController::class, 'loraData']); Route::get('/loraData', [\App\Http\Controllers\IndexController::class, 'loraData']);

Loading…
Cancel
Save