作者 周海龙

合并分支 'zhl' 到 'master'

Zhl



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