作者 lyh

gx

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