作者 邓超

job

@@ -126,8 +126,14 @@ class Job extends Base { @@ -126,8 +126,14 @@ class Job extends Base {
126 $where = dbWhere($whereArray); 126 $where = dbWhere($whereArray);
127 127
128 $lists = db()->all(sendJobStatusSql::detail($where, $page, $limit, $isExport)); 128 $lists = db()->all(sendJobStatusSql::detail($where, $page, $limit, $isExport));
129 - 129 + $ret = db()->first(sendJobsSql::find($jobId));
  130 + if($ret){
  131 + $ret['maildata'] = json_decode($ret['maildata'],true);
  132 + }
130 foreach ($lists as &$list) { 133 foreach ($lists as &$list) {
  134 + if ($list['to'] == 'all'){
  135 + $list['to'] = implode(',',array_column($ret['maildata']['tos'],'email'));
  136 + }
131 $list['error'] = ''; 137 $list['error'] = '';
132 } 138 }
133 139