dongxiaoqin пре 8 месеци
родитељ
комит
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([