|
@@ -179,6 +179,8 @@ class ProjectController extends BaseController |
|
@@ -179,6 +179,8 @@ class ProjectController extends BaseController |
|
179
|
$query->where(function ($subQuery) {
|
179
|
$query->where(function ($subQuery) {
|
|
180
|
// 搜索域名
|
180
|
// 搜索域名
|
|
181
|
if ($this->map['search_type'] == 'domain') {
|
181
|
if ($this->map['search_type'] == 'domain') {
|
|
|
|
182
|
+ $parsedUrl = parse_url($this->map['search']);
|
|
|
|
183
|
+ $this->map['search'] = $parsedUrl['host'] ?? $this->map['search'];
|
|
182
|
$ids = DomainInfo::where('domain', 'like', '%'.$this->map['search'].'%')->pluck('id')->toArray();
|
184
|
$ids = DomainInfo::where('domain', 'like', '%'.$this->map['search'].'%')->pluck('id')->toArray();
|
|
183
|
$subQuery->whereIn('gl_project_deploy_optimize.domain', $ids);
|
185
|
$subQuery->whereIn('gl_project_deploy_optimize.domain', $ids);
|
|
184
|
} else if($this->map['search_type'] == 'test_domain'){
|
186
|
} else if($this->map['search_type'] == 'test_domain'){
|
|
@@ -333,8 +335,8 @@ class ProjectController extends BaseController |
|
@@ -333,8 +335,8 @@ class ProjectController extends BaseController |
|
333
|
* @method :post
|
335
|
* @method :post
|
|
334
|
* @time :2023/8/17 16:42
|
336
|
* @time :2023/8/17 16:42
|
|
335
|
*/
|
337
|
*/
|
|
336
|
- public function info(Request $request, ProjectLogic $logic){
|
|
|
|
337
|
- $request->validate([
|
338
|
+ public function info(ProjectLogic $logic){
|
|
|
|
339
|
+ $this->request->validate([
|
|
338
|
'id'=>'required'
|
340
|
'id'=>'required'
|
|
339
|
],[
|
341
|
],[
|
|
340
|
'id.required' => 'ID不能为空'
|
342
|
'id.required' => 'ID不能为空'
|
|
@@ -352,17 +354,17 @@ class ProjectController extends BaseController |
|
@@ -352,17 +354,17 @@ class ProjectController extends BaseController |
|
352
|
*/
|
354
|
*/
|
|
353
|
public function save(ProjectLogic $logic)
|
355
|
public function save(ProjectLogic $logic)
|
|
354
|
{
|
356
|
{
|
|
|
|
357
|
+ $this->request->validate([
|
|
|
|
358
|
+ 'type'=>'required'
|
|
|
|
359
|
+ ],[
|
|
|
|
360
|
+ 'type.required' => '类型不能为空'
|
|
|
|
361
|
+ ]);
|
|
355
|
$logic->projectSave();
|
362
|
$logic->projectSave();
|
|
356
|
$this->response('success');
|
363
|
$this->response('success');
|
|
357
|
}
|
364
|
}
|
|
358
|
|
365
|
|
|
359
|
/**
|
366
|
/**
|
|
360
|
* 询盘通知设置
|
367
|
* 询盘通知设置
|
|
361
|
- * @param ProjectRequest $request
|
|
|
|
362
|
- * @param ProjectLogic $logic
|
|
|
|
363
|
- * @return \Illuminate\Http\JsonResponse
|
|
|
|
364
|
- * @throws \Psr\Container\ContainerExceptionInterface
|
|
|
|
365
|
- * @throws \Psr\Container\NotFoundExceptionInterface
|
|
|
|
366
|
* @author zbj
|
368
|
* @author zbj
|
|
367
|
* @date 2023/5/17
|
369
|
* @date 2023/5/17
|
|
368
|
*/
|
370
|
*/
|
|
@@ -400,10 +402,6 @@ class ProjectController extends BaseController |
|
@@ -400,10 +402,6 @@ class ProjectController extends BaseController |
|
400
|
|
402
|
|
|
401
|
/**
|
403
|
/**
|
|
402
|
* 省市数据源
|
404
|
* 省市数据源
|
|
403
|
- * @param ProjectLogic $logic
|
|
|
|
404
|
- * @return \Illuminate\Http\JsonResponse
|
|
|
|
405
|
- * @throws \Psr\Container\ContainerExceptionInterface
|
|
|
|
406
|
- * @throws \Psr\Container\NotFoundExceptionInterface
|
|
|
|
407
|
* @author zbj
|
405
|
* @author zbj
|
|
408
|
* @date 2023/6/27
|
406
|
* @date 2023/6/27
|
|
409
|
*/
|
407
|
*/
|
|
@@ -414,10 +412,6 @@ class ProjectController extends BaseController |
|
@@ -414,10 +412,6 @@ class ProjectController extends BaseController |
|
414
|
|
412
|
|
|
415
|
/**
|
413
|
/**
|
|
416
|
* 渠道数据源
|
414
|
* 渠道数据源
|
|
417
|
- * @param ProjectLogic $logic
|
|
|
|
418
|
- * @return \Illuminate\Http\JsonResponse
|
|
|
|
419
|
- * @throws \Psr\Container\ContainerExceptionInterface
|
|
|
|
420
|
- * @throws \Psr\Container\NotFoundExceptionInterface
|
|
|
|
421
|
* @author zbj
|
415
|
* @author zbj
|
|
422
|
* @date 2023/6/27
|
416
|
* @date 2023/6/27
|
|
423
|
*/
|
417
|
*/
|
|
@@ -750,6 +744,13 @@ class ProjectController extends BaseController |
|
@@ -750,6 +744,13 @@ class ProjectController extends BaseController |
|
750
|
$this->response('success',Code::SUCCESS,$list);
|
744
|
$this->response('success',Code::SUCCESS,$list);
|
|
751
|
}
|
745
|
}
|
|
752
|
|
746
|
|
|
|
|
747
|
+ /**
|
|
|
|
748
|
+ * @remark :处理tdk
|
|
|
|
749
|
+ * @name :handleTdk
|
|
|
|
750
|
+ * @author :lyh
|
|
|
|
751
|
+ * @method :post
|
|
|
|
752
|
+ * @time :2023/12/29 11:16
|
|
|
|
753
|
+ */
|
|
753
|
public function handleTdk($item){
|
754
|
public function handleTdk($item){
|
|
754
|
$data = [
|
755
|
$data = [
|
|
755
|
'gl_product'=>'产品',
|
756
|
'gl_product'=>'产品',
|