浏览代码

修改bug

dongxiaoqin 11 月之前
父节点
当前提交
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([