|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Http\Controllers\Aside\Drainage;
|
|
|
|
namespace App\Http\Controllers\Aside\GoogleSeoIps;
|
|
|
|
|
|
|
|
use App\Enums\Common\Code;
|
|
|
|
use App\Http\Controllers\Aside\BaseController;
|
|
|
|
use App\Http\Logic\Aside\Projects\ProjectsLogic;
|
|
|
|
use App\Models\GoogleSeoIps\Country;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :谷歌流量系统
|
|
...
|
...
|
@@ -45,6 +46,7 @@ class ProjectsController extends BaseController |
|
|
|
'id.required' => 'ID不能为空'
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
//参数验证
|
|
|
|
$this->verifyParam();
|
|
|
|
$projectsLogic->projectsSave();
|
|
|
|
$this->response('success');
|
|
...
|
...
|
@@ -86,6 +88,7 @@ class ProjectsController extends BaseController |
|
|
|
'seo_type.required' => '引流方式不能为空',
|
|
|
|
]);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :删除记录
|
|
|
|
* @name :del
|
|
...
|
...
|
@@ -102,4 +105,20 @@ class ProjectsController extends BaseController |
|
|
|
$projectsLogic->projectsDel();
|
|
|
|
$this->response('success');
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :获取国家
|
|
|
|
* @name :getCountry
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2023/7/18 11:08
|
|
|
|
*/
|
|
|
|
public function getCountry(ProjectsLogic $projectsLogic){
|
|
|
|
if(isset($this->map['cname']) && !empty( $this->map['cname'])){
|
|
|
|
$this->map['cname'] = ['like','%'.$this->map['cname'].'%'];
|
|
|
|
}
|
|
|
|
$lists = $projectsLogic->getCountryList($this->map);
|
|
|
|
$this->response('success',Code::SUCCESS,$lists);
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|