正在显示
1 个修改的文件
包含
4 行增加
和
2 行删除
| @@ -99,6 +99,8 @@ class SendKeyword extends Command | @@ -99,6 +99,8 @@ class SendKeyword extends Command | ||
| 99 | DB::disconnect('custom_mysql'); | 99 | DB::disconnect('custom_mysql'); |
| 100 | // 数据成功后推送同志 | 100 | // 数据成功后推送同志 |
| 101 | if ($send) { | 101 | if ($send) { |
| 102 | + unset($item['main_lang_id']); | ||
| 103 | + unset($item['is_auto_keywords']); | ||
| 102 | $item['day'] = $day; | 104 | $item['day'] = $day; |
| 103 | $this->sendNotice($item); | 105 | $this->sendNotice($item); |
| 104 | } | 106 | } |
| @@ -132,8 +134,8 @@ class SendKeyword extends Command | @@ -132,8 +134,8 @@ class SendKeyword extends Command | ||
| 132 | { | 134 | { |
| 133 | try { | 135 | try { |
| 134 | $query = http_build_query($item); | 136 | $query = http_build_query($item); |
| 135 | - $url = 'http://api.quanqiusou.cn/google-rank/api/v6_add_extend_keywords.php'; | ||
| 136 | - app(ToolRepository::class)->curlRequest($url, $query); | 137 | + $url = 'http://api.quanqiusou.cn/google-rank/api/v6_add_extend_keywords.php?' . $query; |
| 138 | + app(ToolRepository::class)->curlRequest($url, [], 'GET'); | ||
| 137 | // TODO 推送通知 待定 | 139 | // TODO 推送通知 待定 |
| 138 | } catch (\Exception $e) { | 140 | } catch (\Exception $e) { |
| 139 | $this->output('推送通知失败,项目ID:' . $item['id']); | 141 | $this->output('推送通知失败,项目ID:' . $item['id']); |
-
请 注册 或 登录 后发表评论