...
|
...
|
@@ -59,6 +59,22 @@ class SendJob { |
|
|
|
|
|
if($lists){
|
|
|
foreach ($lists as $list){
|
|
|
if($list['status'] === 1) {
|
|
|
$total = db()->first(\Model\sendJobStatusSql::countSum($list['id']));
|
|
|
if ($total && $total['t'] == $list['total']) {
|
|
|
// 更新状态
|
|
|
db()->update(\Model\sendJobsSql::$table, [
|
|
|
'status' => 2,
|
|
|
'success' => $total['s'],
|
|
|
'error' => $total['e'],
|
|
|
], dbWhere(['id' => $list['id']]));
|
|
|
|
|
|
continue;
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
$this->go_($list);
|
|
|
}
|
|
|
}else{
|
...
|
...
|
|