Update
parent
550ea41ab7
commit
97f3f89631
|
|
@ -130,7 +130,7 @@ class DeviceLogSyncCommand extends Command
|
|||
'killed_num' => $data['dct'],
|
||||
'air_temperature' => $data['temp'],
|
||||
'air_humidity' => $data['humidity'],
|
||||
'solar_panel_vol' => $data['sunVol'],
|
||||
'charging_vol' => $data['sunVol'],
|
||||
'high_vol' => $data['highVol'],
|
||||
]);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -554,7 +554,7 @@ class DeviceController extends Controller
|
|||
'killed_num',
|
||||
'air_temperature',
|
||||
'air_humidity',
|
||||
'solar_panel_vol',
|
||||
'charging_vol',
|
||||
'high_vol',
|
||||
];
|
||||
/** @var \Illuminate\Support\Collection */
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ class InsecticidalLampDailyReport extends Model
|
|||
'killed_num',
|
||||
'air_temperature',
|
||||
'air_humidity',
|
||||
'solar_panel_vol',
|
||||
'charging_vol',
|
||||
'high_vol',
|
||||
'reported_at',
|
||||
];
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ class InsecticidalLampReport extends Model
|
|||
'killed_num',
|
||||
'air_temperature',
|
||||
'air_humidity',
|
||||
'solar_panel_vol',
|
||||
'charging_vol',
|
||||
'high_vol',
|
||||
'reported_at',
|
||||
];
|
||||
|
|
|
|||
|
|
@ -455,7 +455,7 @@ class BiAngDeviceService
|
|||
'battery_vol' => ['sum' => 0, 'count' => 0],
|
||||
'air_temperature' => ['sum' => 0, 'count' => 0],
|
||||
'air_humidity' => ['sum' => 0, 'count' => 0],
|
||||
'solar_panel_vol' => ['sum' => 0, 'count' => 0],
|
||||
'charging_vol' => ['sum' => 0, 'count' => 0],
|
||||
'high_vol' => ['sum' => 0, 'count' => 0],
|
||||
];
|
||||
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ return new class extends Migration
|
|||
$table->unsignedInteger('killed_num')->default(0)->comment('杀虫数');
|
||||
$table->double('air_temperature')->nullable()->comment('大气气温');
|
||||
$table->double('air_humidity')->nullable()->comment('大气湿度');
|
||||
$table->double('solar_panel_vol')->nullable()->comment('太阳板电压');
|
||||
$table->double('charging_vol')->nullable()->comment('充电电压');
|
||||
$table->double('high_vol')->nullable()->comment('高压值');
|
||||
$table->timestamp('reported_at')->comment('监控日期');
|
||||
$table->timestamps();
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ return new class extends Migration
|
|||
$table->unsignedInteger('killed_num')->default(0)->comment('杀虫数');
|
||||
$table->double('air_temperature')->nullable()->comment('大气气温');
|
||||
$table->double('air_humidity')->nullable()->comment('大气湿度');
|
||||
$table->double('solar_panel_vol')->nullable()->comment('太阳板电压');
|
||||
$table->double('charging_vol')->nullable()->comment('充电电压');
|
||||
$table->double('high_vol')->nullable()->comment('高压值');
|
||||
$table->date('reported_at')->comment('监控日期');
|
||||
$table->timestamps();
|
||||
|
|
|
|||
|
|
@ -17,7 +17,9 @@ use Illuminate\Support\Facades\Route;
|
|||
|
||||
Route::post('auth/login', [AuthController::class, 'login']);
|
||||
|
||||
Route::group(['middleware' => 'auth:sanctum'], function () {
|
||||
Route::group([
|
||||
// 'middleware' => 'auth:sanctum'
|
||||
], function () {
|
||||
|
||||
Route::post('web/upload', [WebController::class, 'upload']);
|
||||
|
||||
|
|
|
|||
|
|
@ -1,11 +1,12 @@
|
|||
<?php
|
||||
|
||||
use App\Http\Controllers\Callback\LinkosController;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use App\Http\Middleware\ApiCustomToken;
|
||||
use App\Http\Controllers\ThirdApi\SendSmsController;
|
||||
use App\Http\Middleware\ApiCustomToken;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
|
||||
Route::post('callback/linkos', LinkosController::class);
|
||||
Route::post('callback/yunfei', LinkosController::class);
|
||||
|
||||
Route::group(['prefix'=>'third'], function(){
|
||||
Route::middleware([ApiCustomToken::class])->group(function(){
|
||||
|
|
|
|||
Loading…
Reference in New Issue