|
|
@@ -410,8 +410,12 @@ class ShopController extends BaseController
|
|
|
$mainId = $shop['mainId'] ?? 0;
|
|
|
$main = MainClass::getById($mainId, true);
|
|
|
$balance = $main->balance ?? 0;
|
|
|
- $respond = StatSaleClass::profile($mainId);
|
|
|
- $incomeList = $respond['income'] ?? [];
|
|
|
+ if(!empty($name)){
|
|
|
+ $incomeList = [];
|
|
|
+ }else{
|
|
|
+ $respond = StatSaleClass::profile($mainId);
|
|
|
+ $incomeList = $respond['income'] ?? [];
|
|
|
+ }
|
|
|
$todaySale = 0;
|
|
|
if (!empty($incomeList)) {
|
|
|
foreach ($incomeList as $item) {
|