shish 1 年間 前
コミット
aec86cd564
1 ファイル変更1 行追加1 行削除
  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;
                 $mainId = $shop['mainId'] ?? 0;
                 $main = MainClass::getById($mainId, true);
                 $main = MainClass::getById($mainId, true);
                 $balance = $main->balance ?? 0;
                 $balance = $main->balance ?? 0;
-                if(!empty($name)){
+                if(!empty($name) || $hasSale == 0){
                     $incomeList = [];
                     $incomeList = [];
                 }else{
                 }else{
                     $respond = StatSaleClass::profile($mainId);
                     $respond = StatSaleClass::profile($mainId);