|
...
|
...
|
@@ -13,7 +13,7 @@ use App\Helper\Translate; |
|
|
|
use App\Http\Logic\Bside\BaseLogic;
|
|
|
|
use App\Models\GoogleKeywordInsight\GoogleKeywordInsight;
|
|
|
|
use App\Models\GoogleKeywordInsight\GoogleKeywordInsightDetail;
|
|
|
|
use App\Services\GoogleSearchService;
|
|
|
|
use App\Services\RapIdApIService;
|
|
|
|
use Illuminate\Support\Facades\DB;
|
|
|
|
|
|
|
|
class GoogleKeywordInsightLogic extends BaseLogic
|
|
...
|
...
|
@@ -37,7 +37,7 @@ class GoogleKeywordInsightLogic extends BaseLogic |
|
|
|
public function getGoogleInsight(){
|
|
|
|
$data = $this->model->read(['search'=>$this->param['keyword']],['id']);
|
|
|
|
if($data === false){
|
|
|
|
$this->service = new GoogleSearchService();
|
|
|
|
$this->service = new RapIdApIService();
|
|
|
|
$data = $this->service->requestUrl($this->param['keyword']);
|
|
|
|
if(!empty($data)){
|
|
|
|
DB::beginTransaction();
|
|
...
|
...
|
@@ -64,7 +64,7 @@ class GoogleKeywordInsightLogic extends BaseLogic |
|
|
|
* @time :2025/3/25 14:36
|
|
|
|
*/
|
|
|
|
public function getGoogleInsightDetail(){
|
|
|
|
$this->service = new GoogleSearchService();
|
|
|
|
$this->service = new RapIdApIService();
|
|
|
|
$data = $this->service->requestUrl($this->param['keyword']);
|
|
|
|
if(!empty($data)){
|
|
|
|
DB::beginTransaction();
|
...
|
...
|
|