|
...
|
...
|
@@ -4,6 +4,7 @@ namespace App\Http\Controllers\Aside\AiRemove; |
|
|
|
|
|
|
|
use App\Enums\Common\Code;
|
|
|
|
use App\Http\Controllers\Aside\BaseController;
|
|
|
|
use App\Jobs\WordAi;
|
|
|
|
use App\Models\AiRemove\AiRemove;
|
|
|
|
use App\Models\Manage\Manage;
|
|
|
|
|
|
...
|
...
|
@@ -17,7 +18,7 @@ class AiRemoveController extends BaseController |
|
|
|
public function getTaskLists()
|
|
|
|
{
|
|
|
|
$model = new AiRemove();
|
|
|
|
$lists = $model->lists($this->map, $this->page, $this->row, 'id', ['id', 'user_id', 'status', 'error_msg', 'created_at', 'updated_at']);
|
|
|
|
$lists = $model->lists($this->map, $this->page, $this->row, 'id', ['id', 'user_id', 'status', 'created_at', 'updated_at']);
|
|
|
|
if (!empty($lists)) {
|
|
|
|
$manage_model = new Manage();
|
|
|
|
foreach ($lists['list'] as $k => $v) {
|
|
...
|
...
|
@@ -71,7 +72,8 @@ class AiRemoveController extends BaseController |
|
|
|
}
|
|
|
|
|
|
|
|
$data['status'] = AiRemove::STATUS_UN;
|
|
|
|
$model->add($data);
|
|
|
|
$id = $model->addReturnId($data);
|
|
|
|
WordAi::dispatch(['id' => $id]);
|
|
|
|
$this->response('success');
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|