作者 刘锟

update

@@ -96,8 +96,8 @@ class ProjectImport extends Command @@ -96,8 +96,8 @@ class ProjectImport extends Command
96 $total_count = 0; //总条数 96 $total_count = 0; //总条数
97 $success_count = 0; //成功导入条数 97 $success_count = 0; //成功导入条数
98 $repeat_count = 0; //过滤已存在条数 98 $repeat_count = 0; //过滤已存在条数
99 - $fail_count = 0;  
100 - $fail_line = []; 99 + $fail_count = 0;//导入失败条数
  100 + $fail_line = [];//失败行数
101 if (count($line_of_text) > 1) { 101 if (count($line_of_text) > 1) {
102 102
103 //设置数据库 103 //设置数据库
@@ -150,7 +150,7 @@ class ProjectImport extends Command @@ -150,7 +150,7 @@ class ProjectImport extends Command
150 $task->success_count += $success_count; 150 $task->success_count += $success_count;
151 $task->save(); 151 $task->save();
152 152
153 - $this->send_mail($task->user_id, $task->created_at, $task->type, $success_count, $fail_count, $repeat_count, '', $fail_line); 153 + $this->send_mail($task->user_id, $task->created_at, $task->type, $success_count, $repeat_count, $fail_count, '', $fail_line);
154 154
155 echo 'date:' . date('Y-m-d H:i:s') . ', task_id: ' . $task->id . ', import end, total count: ' . $total_count . ', success count: ' . $success_count . PHP_EOL; 155 echo 'date:' . date('Y-m-d H:i:s') . ', task_id: ' . $task->id . ', import end, total count: ' . $total_count . ', success count: ' . $success_count . PHP_EOL;
156 156