|
@@ -59,6 +59,22 @@ class SendJob { |
|
@@ -59,6 +59,22 @@ class SendJob { |
59
|
|
59
|
|
60
|
if($lists){
|
60
|
if($lists){
|
61
|
foreach ($lists as $list){
|
61
|
foreach ($lists as $list){
|
|
|
62
|
+ if($list['status'] === 1) {
|
|
|
63
|
+ $total = db()->first(\Model\sendJobStatusSql::countSum($list['id']));
|
|
|
64
|
+ if ($total && $total['t'] == $list['total']) {
|
|
|
65
|
+ // 更新状态
|
|
|
66
|
+ db()->update(\Model\sendJobsSql::$table, [
|
|
|
67
|
+ 'status' => 2,
|
|
|
68
|
+ 'success' => $total['s'],
|
|
|
69
|
+ 'error' => $total['e'],
|
|
|
70
|
+ ], dbWhere(['id' => $list['id']]));
|
|
|
71
|
+
|
|
|
72
|
+ continue;
|
|
|
73
|
+ }
|
|
|
74
|
+
|
|
|
75
|
+ }
|
|
|
76
|
+
|
|
|
77
|
+
|
62
|
$this->go_($list);
|
78
|
$this->go_($list);
|
63
|
}
|
79
|
}
|
64
|
}else{
|
80
|
}else{
|