|
...
|
...
|
@@ -65,9 +65,12 @@ class SendKeyword extends Command |
|
|
|
->get();
|
|
|
|
$time = time();
|
|
|
|
$send_num = [30 => 1000, 60 => 3000, 90 => 6000];
|
|
|
|
$ban_domain = $this->banDomain();
|
|
|
|
foreach ($projects as $item) {
|
|
|
|
if (empty($item->is_auto_keywords))
|
|
|
|
continue;
|
|
|
|
if (in_array($item->domain, $ban_domain))
|
|
|
|
continue;
|
|
|
|
if (empty($item->api_no)) {
|
|
|
|
$this->output('项目ID:' . $item->id . ', api_no为空;');
|
|
|
|
continue;
|
|
...
|
...
|
@@ -99,6 +102,7 @@ class SendKeyword extends Command |
|
|
|
DB::disconnect('custom_mysql');
|
|
|
|
// 数据成功后推送同志
|
|
|
|
if ($send) {
|
|
|
|
$item = $item->toArray();
|
|
|
|
unset($item['main_lang_id']);
|
|
|
|
unset($item['is_auto_keywords']);
|
|
|
|
$item['day'] = $day;
|
|
...
|
...
|
@@ -130,6 +134,11 @@ class SendKeyword extends Command |
|
|
|
return true;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 通知
|
|
|
|
* @param $item
|
|
|
|
* @return bool
|
|
|
|
*/
|
|
|
|
public function sendNotice($item)
|
|
|
|
{
|
|
|
|
try {
|
|
...
|
...
|
@@ -144,6 +153,52 @@ class SendKeyword extends Command |
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 禁用
|
|
|
|
* @return array
|
|
|
|
*/
|
|
|
|
public function banDomain()
|
|
|
|
{
|
|
|
|
$array = [
|
|
|
|
'www.venttopurifier.com',
|
|
|
|
'www.gwxpcsheet.com',
|
|
|
|
'www.bizzyboi.com',
|
|
|
|
'www.wholesaleladyclothing.com',
|
|
|
|
'www.chuanbokeji.com',
|
|
|
|
'www.goalwhite.com',
|
|
|
|
'www.yusunheating.com',
|
|
|
|
'www.bretonprecision.com',
|
|
|
|
'www.chinarendering.com',
|
|
|
|
'www.centurybeauty.com',
|
|
|
|
'www.vazpocable.com',
|
|
|
|
'www.tengda-smart.com',
|
|
|
|
'www.kayne-bm.com',
|
|
|
|
'www.aimazingbag.com',
|
|
|
|
'www.alpha-lifetech.com',
|
|
|
|
'www.junyi-laser.com',
|
|
|
|
'www.unionfurnish.com',
|
|
|
|
'www.zphydraulic.com',
|
|
|
|
'www.younisicleaning.com',
|
|
|
|
'www.shibaodeprecision.com',
|
|
|
|
'www.semmcocoa.com',
|
|
|
|
'www.sbdmold.com',
|
|
|
|
'www.utsfabrictester.com',
|
|
|
|
'www.tlgantryrobot.com',
|
|
|
|
'www.slabyte.com',
|
|
|
|
'www.hysum.com',
|
|
|
|
'www.rsecobag.com',
|
|
|
|
'www.yuchomachine.com',
|
|
|
|
'www.hidinosaurs.com',
|
|
|
|
'www.medigauze.com',
|
|
|
|
'www.shtangkefresh.com',
|
|
|
|
'www.fkcrane.com',
|
|
|
|
'www.zkmparts.com',
|
|
|
|
'www.zhishuogroup.com',
|
|
|
|
'www.yunlinplushtoys.com',
|
|
|
|
];
|
|
|
|
return $array;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @param $message
|
|
|
|
*/
|
|
|
|
public function output($message)
|
...
|
...
|
|