多商户:实时概况->下单用户数,面板Bug
/addons/fecmall/fecbbc/services/Systemhelper.php
第114行和118行,命令位置弄反了。
if (is_array($orderData['coll']) && !empty($orderData['coll'])) {
foreach ($orderData['coll'] as $one) {
$orderTime = $one['created_at'];
$baseGrandTotal = $one['base_grand_total'];
$customer_id = $one['customer_id'];
if ($orderTime >= $today0Time) {
$orderTodayTotalCount +=1;
$orderTodayTotalBaseSale += $baseGrandTotal;
$orderYestCustomer[$customer_id] = $customer_id;
} else {
$orderYestTotalCount +=1;
$orderYestTotalBaseSale += $baseGrandTotal;
$orderTodayCustomer[$customer_id] = $customer_id;
}
}
}
把两行代码对调后,多商户的后台面板,数字正确了。
但是管理员的后台面板,还是错误的。不知道如何修改。