|
...
|
...
|
@@ -179,6 +179,8 @@ class ProjectController extends BaseController |
|
|
|
$query->where(function ($subQuery) {
|
|
|
|
// 搜索域名
|
|
|
|
if ($this->map['search_type'] == 'domain') {
|
|
|
|
$parsedUrl = parse_url($this->map['search']);
|
|
|
|
$this->map['search'] = $parsedUrl['host'] ?? $this->map['search'];
|
|
|
|
$ids = DomainInfo::where('domain', 'like', '%'.$this->map['search'].'%')->pluck('id')->toArray();
|
|
|
|
$subQuery->whereIn('gl_project_deploy_optimize.domain', $ids);
|
|
|
|
} else if($this->map['search_type'] == 'test_domain'){
|
|
...
|
...
|
@@ -333,8 +335,8 @@ class ProjectController extends BaseController |
|
|
|
* @method :post
|
|
|
|
* @time :2023/8/17 16:42
|
|
|
|
*/
|
|
|
|
public function info(Request $request, ProjectLogic $logic){
|
|
|
|
$request->validate([
|
|
|
|
public function info(ProjectLogic $logic){
|
|
|
|
$this->request->validate([
|
|
|
|
'id'=>'required'
|
|
|
|
],[
|
|
|
|
'id.required' => 'ID不能为空'
|
|
...
|
...
|
@@ -352,17 +354,17 @@ class ProjectController extends BaseController |
|
|
|
*/
|
|
|
|
public function save(ProjectLogic $logic)
|
|
|
|
{
|
|
|
|
$this->request->validate([
|
|
|
|
'type'=>'required'
|
|
|
|
],[
|
|
|
|
'type.required' => '类型不能为空'
|
|
|
|
]);
|
|
|
|
$logic->projectSave();
|
|
|
|
$this->response('success');
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 询盘通知设置
|
|
|
|
* @param ProjectRequest $request
|
|
|
|
* @param ProjectLogic $logic
|
|
|
|
* @return \Illuminate\Http\JsonResponse
|
|
|
|
* @throws \Psr\Container\ContainerExceptionInterface
|
|
|
|
* @throws \Psr\Container\NotFoundExceptionInterface
|
|
|
|
* @author zbj
|
|
|
|
* @date 2023/5/17
|
|
|
|
*/
|
|
...
|
...
|
@@ -400,10 +402,6 @@ class ProjectController extends BaseController |
|
|
|
|
|
|
|
/**
|
|
|
|
* 省市数据源
|
|
|
|
* @param ProjectLogic $logic
|
|
|
|
* @return \Illuminate\Http\JsonResponse
|
|
|
|
* @throws \Psr\Container\ContainerExceptionInterface
|
|
|
|
* @throws \Psr\Container\NotFoundExceptionInterface
|
|
|
|
* @author zbj
|
|
|
|
* @date 2023/6/27
|
|
|
|
*/
|
|
...
|
...
|
@@ -414,10 +412,6 @@ class ProjectController extends BaseController |
|
|
|
|
|
|
|
/**
|
|
|
|
* 渠道数据源
|
|
|
|
* @param ProjectLogic $logic
|
|
|
|
* @return \Illuminate\Http\JsonResponse
|
|
|
|
* @throws \Psr\Container\ContainerExceptionInterface
|
|
|
|
* @throws \Psr\Container\NotFoundExceptionInterface
|
|
|
|
* @author zbj
|
|
|
|
* @date 2023/6/27
|
|
|
|
*/
|
|
...
|
...
|
@@ -750,6 +744,13 @@ class ProjectController extends BaseController |
|
|
|
$this->response('success',Code::SUCCESS,$list);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @remark :处理tdk
|
|
|
|
* @name :handleTdk
|
|
|
|
* @author :lyh
|
|
|
|
* @method :post
|
|
|
|
* @time :2023/12/29 11:16
|
|
|
|
*/
|
|
|
|
public function handleTdk($item){
|
|
|
|
$data = [
|
|
|
|
'gl_product'=>'产品',
|
...
|
...
|
|