Browse Source

修改bug

dongxiaoqin 8 tháng trước cách đây
mục cha
commit
3044353e19

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

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