testing moon worth job

This commit is contained in:
2021-05-30 22:44:04 +09:00
parent bb65968afe
commit 8c44bdac05

View File

@@ -54,6 +54,8 @@ class TestController extends Controller
$ores = AllianceMoonOre::where([ $ores = AllianceMoonOre::where([
'moon_id' => $moon->moon_id, 'moon_id' => $moon->moon_id,
])->get(['ore_id', 'quantity'])->toArray(); ])->get(['ore_id', 'quantity'])->toArray();
dd($ores);
//one of these two ways will work //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]); $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]);