|
...
|
...
|
@@ -41,27 +41,9 @@ class lyhDemo extends Command |
|
|
|
protected $description = '更新路由';
|
|
|
|
|
|
|
|
public function handle(){
|
|
|
|
self::initAggregateKeywordAffix();
|
|
|
|
return true;
|
|
|
|
return $this->aggregate_keyword_affix();
|
|
|
|
}
|
|
|
|
|
|
|
|
public static function initAggregateKeywordAffix($project_id = 4298){
|
|
|
|
$time = date('Y-m-d H:i:s');
|
|
|
|
$prefix = "How To find"."\n"."Why Choose"."\n"."China Top"."\n"."Best Way To Choose"."\n"."Methods To Choose";
|
|
|
|
$suffix = "Manufacturer"."\n"."Supplier"."\n"."Products"."\n"."Factory";
|
|
|
|
$info = DB::table('gl_aggregate_keyword_affix')->where('project_id',$project_id)->first();
|
|
|
|
if(empty($info)){
|
|
|
|
$data = [
|
|
|
|
'project_id'=>$project_id,
|
|
|
|
'prefix'=>$prefix,
|
|
|
|
'suffix'=>$suffix,
|
|
|
|
'created_at' => $time,
|
|
|
|
'updated_at' => $time
|
|
|
|
];
|
|
|
|
DB::table('gl_aggregate_keyword_affix')->insert($data);
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
/**
|
|
|
|
* @remark :获取数据
|
|
|
|
* @name :aggregate_keyword_affix
|
...
|
...
|
|