Browse Source

没有花材需要打印

shish 2 years ago
parent
commit
24e42c855a
1 changed files with 3 additions and 1 deletions
  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('没有花材需要打印');
+        }
     }
 
 }