shish 1 year ago
parent
commit
aec86cd564
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app-ghs/controllers/ShopController.php

+ 1 - 1
app-ghs/controllers/ShopController.php

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