作者 lyh

gx

<?php
/**
* @remark :
* @name :ImportKeyword.php
* @author :lyh
* @method :post
* @time :2024/1/6 17:38
*/
namespace App\Console\Commands;
use Illuminate\Console\Command;
class ImportKeyword extends Command
{
}
... ...
... ... @@ -114,7 +114,7 @@ class KeywordController extends BaseController
'title.max' => '批量操作不能超过1000条数据'
]);
$logic->batchAdd();
$this->response('success');
$this->response('路由生成中,请稍后刷新查看');
}
/**
... ...
... ... @@ -154,7 +154,6 @@ class KeywordLogic extends BaseLogic
$param['title'] = $v;
$id = $this->model->insertGetId($param);
$route = RouteMap::setRoute($route_array[$k], RouteMap::SOURCE_PRODUCT_KEYWORD, $id, $this->user['project_id']);
//// $this->curlDelRoute(['new_route'=>$route]);
$this->model->edit(['route'=>$route],['id'=>$id]);
}
}
... ...
... ... @@ -12,7 +12,7 @@ class NoticeLog extends Model
const TYPE_PROJECT = 'project';
const TYPE_RANK_DATA = 'rank_data';
const TYPE_INIT_PROJECT = 'init_project';
const TYPE_INIT_KEYWORD = 'init_keyword';
const STATUS_PENDING = 0;
const STATUS_SUCCESS = 1;
const STATUS_FAIL = 2;
... ...