|
...
|
...
|
@@ -10,6 +10,8 @@ |
|
|
|
namespace App\Http\Controllers\Bside\GoogleKeyword;
|
|
|
|
|
|
|
|
use App\Enums\Common\Code;
|
|
|
|
use App\Helper\Country;
|
|
|
|
use App\Helper\Translate;
|
|
|
|
use App\Http\Controllers\Bside\BaseController;
|
|
|
|
use App\Models\Com\NoticeLog;
|
|
|
|
use App\Models\GoogleSearch\GoogleSearch;
|
|
...
|
...
|
@@ -35,6 +37,14 @@ class GoogleSearchController extends BaseController |
|
|
|
$searchDetailModel = new GoogleSearchDetail();
|
|
|
|
$this->map['project_id']= $this->user['project_id'];
|
|
|
|
$data = $searchDetailModel->lists($this->map,$this->page,$this->row);
|
|
|
|
|
|
|
|
if($this->param['type'] == 'country'){
|
|
|
|
$country = [];
|
|
|
|
foreach ($data as $key => $val){
|
|
|
|
$country[] = Country::getCountryNameByAlpha3($val['keys']);
|
|
|
|
}
|
|
|
|
$route = Translate::tran($country, 'en');
|
|
|
|
}
|
|
|
|
$this->response('success',Code::SUCCESS,$data);
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|