作者 刘锟

update

... ... @@ -96,8 +96,8 @@ class ProjectImport extends Command
$total_count = 0; //总条数
$success_count = 0; //成功导入条数
$repeat_count = 0; //过滤已存在条数
$fail_count = 0;
$fail_line = [];
$fail_count = 0;//导入失败条数
$fail_line = [];//失败行数
if (count($line_of_text) > 1) {
//设置数据库
... ... @@ -150,7 +150,7 @@ class ProjectImport extends Command
$task->success_count += $success_count;
$task->save();
$this->send_mail($task->user_id, $task->created_at, $task->type, $success_count, $fail_count, $repeat_count, '', $fail_line);
$this->send_mail($task->user_id, $task->created_at, $task->type, $success_count, $repeat_count, $fail_count, '', $fail_line);
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;
... ...