testing moon worth job

This commit is contained in:
2021-05-30 22:45:12 +09:00
parent 8c44bdac05
commit ac885c5e3f
2 changed files with 2 additions and 12 deletions

View File

@@ -54,16 +54,8 @@ class TestController extends Controller
$ores = AllianceMoonOre::where([
'moon_id' => $moon->moon_id,
])->get(['ore_id', 'quantity'])->toArray();
dd($ores);
//one of these two ways will work
$worth1 = $mHelper->MoonTotalWorth($ores[0][0], $ores[0][1], $ores[1][0], $ores[1][1], $ores[2][0], $ores[2][1], $ores[3][0], $ores[3][1]);
$worth2 = $mHelper->MoonTotalWorth($ores[0], $ores[1], $ores[2], $ores[3], $ores[4], $ores[5], $ores[6], $ores[7]);
return view('test.moonworth.moon')->with('worth1', $worth1)
->with('worth2', $worth2);
return view('test.moonworth.moon')->with('ores', $ores);
}

View File

@@ -1,6 +1,4 @@
@extends('layouts.user.dashb4')
@section('content')
{{ var_dump($worth1) }}
<br>
{{ var_dump($worth2) }}
{{ var_dump($ores) }}
@endsection