This commit is contained in:
邓皓元 2019-04-24 15:14:35 +08:00
parent 835bfd1b89
commit 731697d676

View File

@ -261,7 +261,7 @@ class FlowPoolController extends Controller
$flowPoolData['total_flows'] = sprintf('%.02f', $flowPoolData['total_flows']);
return res(['flowPool' => $flowPool, 'settings' => $newSettings, 'total' => $cards->values()->sum(), 'total_flows' => $flowPoolData['total_flows']], '数据设置');
return res(['flowPool' => $flowPool, 'settings' => $newSettings, 'total' => array_sum(array_pluck($newSettings, 'total')), 'total_flows' => $flowPoolData['total_flows']], '数据设置');
}
$conditions = $this->request->all();