|
@@ -16,6 +16,7 @@ use App\Models\Product\Category; |
|
@@ -16,6 +16,7 @@ use App\Models\Product\Category; |
|
16
|
use App\Models\Product\CategoryRelated;
|
16
|
use App\Models\Product\CategoryRelated;
|
|
17
|
use App\Models\Product\Keyword;
|
17
|
use App\Models\Product\Keyword;
|
|
18
|
use App\Models\Product\Product;
|
18
|
use App\Models\Product\Product;
|
|
|
|
19
|
+use App\Models\Project\DeployOptimize;
|
|
19
|
use App\Models\Project\OnlineCheck;
|
20
|
use App\Models\Project\OnlineCheck;
|
|
20
|
use App\Models\Project\Project;
|
21
|
use App\Models\Project\Project;
|
|
21
|
use App\Models\RouteMap\RouteMap;
|
22
|
use App\Models\RouteMap\RouteMap;
|
|
@@ -349,4 +350,28 @@ class PrivateController extends BaseController |
|
@@ -349,4 +350,28 @@ class PrivateController extends BaseController |
|
349
|
$list = array_filter(array_unique($domain));
|
350
|
$list = array_filter(array_unique($domain));
|
|
350
|
return $this->success($list);
|
351
|
return $this->success($list);
|
|
351
|
}
|
352
|
}
|
|
|
|
353
|
+
|
|
|
|
354
|
+ /**
|
|
|
|
355
|
+ * 将项目标记为广告状态
|
|
|
|
356
|
+ * @param Request $request
|
|
|
|
357
|
+ * @return false|string
|
|
|
|
358
|
+ */
|
|
|
|
359
|
+ public function markProjectAds(Request $request)
|
|
|
|
360
|
+ {
|
|
|
|
361
|
+ $company = trim($request->input('company_name'));
|
|
|
|
362
|
+ $project = Project::where(['company' => $company])->first();
|
|
|
|
363
|
+ if (empty($project))
|
|
|
|
364
|
+ return $this->error('未找到企业名称为:"' . $company . '"的项目');
|
|
|
|
365
|
+
|
|
|
|
366
|
+ $optimize = DeployOptimize::where(['project_id' => $project->id])->first();
|
|
|
|
367
|
+ $array = [
|
|
|
|
368
|
+ $optimize->special,
|
|
|
|
369
|
+ 16
|
|
|
|
370
|
+ ];
|
|
|
|
371
|
+ $array = array_unique(array_filter($array));
|
|
|
|
372
|
+ $string = ',' . implode(',', $array) . ',';
|
|
|
|
373
|
+ $optimize->special = $string;
|
|
|
|
374
|
+ $optimize->save();
|
|
|
|
375
|
+ return $this->success();
|
|
|
|
376
|
+ }
|
|
352
|
} |
377
|
} |