shish 2 лет назад
Родитель
Сommit
24e42c855a
1 измененных файлов с 3 добавлено и 1 удалено
  1. 3 1
      app-ghs/controllers/StatBookController.php

+ 3 - 1
app-ghs/controllers/StatBookController.php

@@ -42,7 +42,9 @@ class StatBookController extends BaseController
         }
 
         $list = StatBookClass::getAllByCondition($where, 'time DESC', '*');
-        util::success(['list' => $list]);
+        if (empty($list)) {
+            util::fail('没有花材需要打印');
+        }
     }
 
 }