|
...
|
...
|
@@ -99,6 +99,8 @@ class SendKeyword extends Command |
|
|
|
DB::disconnect('custom_mysql');
|
|
|
|
// 数据成功后推送同志
|
|
|
|
if ($send) {
|
|
|
|
unset($item['main_lang_id']);
|
|
|
|
unset($item['is_auto_keywords']);
|
|
|
|
$item['day'] = $day;
|
|
|
|
$this->sendNotice($item);
|
|
|
|
}
|
|
...
|
...
|
@@ -132,8 +134,8 @@ class SendKeyword extends Command |
|
|
|
{
|
|
|
|
try {
|
|
|
|
$query = http_build_query($item);
|
|
|
|
$url = 'http://api.quanqiusou.cn/google-rank/api/v6_add_extend_keywords.php';
|
|
|
|
app(ToolRepository::class)->curlRequest($url, $query);
|
|
|
|
$url = 'http://api.quanqiusou.cn/google-rank/api/v6_add_extend_keywords.php?' . $query;
|
|
|
|
app(ToolRepository::class)->curlRequest($url, [], 'GET');
|
|
|
|
// TODO 推送通知 待定
|
|
|
|
} catch (\Exception $e) {
|
|
|
|
$this->output('推送通知失败,项目ID:' . $item['id']);
|
...
|
...
|
|