作者 lyh

gx

@@ -103,7 +103,6 @@ class GoogleSearchKeyword extends Command @@ -103,7 +103,6 @@ class GoogleSearchKeyword extends Command
103 'position'=>$val['position'], 103 'position'=>$val['position'],
104 ]; 104 ];
105 } 105 }
106 -  
107 if(!empty($saveData)){ 106 if(!empty($saveData)){
108 DB::beginTransaction(); 107 DB::beginTransaction();
109 try { 108 try {
@@ -97,12 +97,6 @@ class GoogleSearchService @@ -97,12 +97,6 @@ class GoogleSearchService
97 return []; 97 return [];
98 } 98 }
99 $data = $data['data'] ?? []; 99 $data = $data['data'] ?? [];
100 - if(!empty($data) && ($search == 5)){  
101 - foreach ($data as $key => $val){  
102 - $val['keys_country'] = Country::getCountryNameByAlpha3(strtoupper($val['keys'][0]));  
103 - $data[$key] = $val;  
104 - }  
105 - }  
106 return $data; 100 return $data;
107 } 101 }
108 } 102 }