作者 邓超

优化

@@ -38,7 +38,7 @@ class Job extends Base { @@ -38,7 +38,7 @@ class Job extends Base {
38 38
39 // 检查状态 39 // 检查状态
40 if($list['status'] === 1){ 40 if($list['status'] === 1){
41 - $total = db()->count(\Model\sendJobStatusSql::countSum($list['id'])); 41 + $total = db()->first(\Model\sendJobStatusSql::countSum($list['id']));
42 if($total && $total['t'] == $list['total']){ 42 if($total && $total['t'] == $list['total']){
43 // 更新状态 43 // 更新状态
44 db()->update(\Model\sendJobsSql::$table,[ 44 db()->update(\Model\sendJobsSql::$table,[