作者 周海龙

合并分支 'zhl' 到 'master'

Zhl



查看合并请求 !1428
... ... @@ -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']);
... ...
... ... @@ -37,19 +37,19 @@ class CreateProject extends Command
}
public function sync($is_update = 0){
$title = date('Ymd') . '-广东威美建材科技有限公司';
$title = date('Ymd') . '-杭州露娜贸易有限公司';
$data = [
'project'=>[
'title' => $title,
'company' => '广东威美建材科技有限公司',
'lead_name' => '蔡伟文',
'mobile' => '13929953235',
'company' => '杭州露娜贸易有限公司',
'lead_name' => '13008931688',
'mobile' => '13008931688',
'mysql_id'=>Project::MYSQL_ID,
'serve_id'=>9,
'qq' => '',
'channel' => '{"user_id": "53", "zone_id": "4", "channel_id": "4"}',
'channel' => '{"user_id": "381", "zone_id": "4", "channel_id": "46"}',
'requirement' => '',
'cooperate_date' => '2019-04-01',
'cooperate_date' => '2019-11-13',
'from_order_id' => '',
'type' => $is_update,
'is_upgrade'=>$is_update,
... ... @@ -57,7 +57,7 @@ class CreateProject extends Command
'deploy_build' => [
'service_duration' => 0,
'plan' => $this->versionData('标准版'),
'login_mobile'=>'13929953235'
'login_mobile'=>'13008931688'
],
'deploy_optimize' => [
// 'api_no' => 0
... ...