dongxiaoqin 8 месяцев назад
Родитель
Сommit
3044353e19
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      app/common/command/RejectionStatistics.php

+ 1 - 1
app/common/command/RejectionStatistics.php

@@ -65,7 +65,7 @@ class RejectionStatistics extends Command
                         }
                     }
                     //取num_list的最大值
-                    $max_num = max($num_list);
+                    $max_num = $num_list ? max($num_list) : [];
                     if ($max_num > 0) {
                         //更新工程师连续拒单次数
                         MasterWorker::where('id', $item['id'])->update([