|
...
|
...
|
@@ -16,6 +16,7 @@ use App\Models\Product\Category; |
|
|
|
use App\Models\Product\CategoryRelated;
|
|
|
|
use App\Models\Product\Keyword;
|
|
|
|
use App\Models\Product\Product;
|
|
|
|
use App\Models\Project\DeployOptimize;
|
|
|
|
use App\Models\Project\OnlineCheck;
|
|
|
|
use App\Models\Project\Project;
|
|
|
|
use App\Models\RouteMap\RouteMap;
|
|
...
|
...
|
@@ -349,4 +350,28 @@ class PrivateController extends BaseController |
|
|
|
$list = array_filter(array_unique($domain));
|
|
|
|
return $this->success($list);
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 将项目标记为广告状态
|
|
|
|
* @param Request $request
|
|
|
|
* @return false|string
|
|
|
|
*/
|
|
|
|
public function markProjectAds(Request $request)
|
|
|
|
{
|
|
|
|
$company = trim($request->input('company_name'));
|
|
|
|
$project = Project::where(['company' => $company])->first();
|
|
|
|
if (empty($project))
|
|
|
|
return $this->error('未找到企业名称为:"' . $company . '"的项目');
|
|
|
|
|
|
|
|
$optimize = DeployOptimize::where(['project_id' => $project->id])->first();
|
|
|
|
$array = [
|
|
|
|
$optimize->special,
|
|
|
|
16
|
|
|
|
];
|
|
|
|
$array = array_unique(array_filter($array));
|
|
|
|
$string = ',' . implode(',', $array) . ',';
|
|
|
|
$optimize->special = $string;
|
|
|
|
$optimize->save();
|
|
|
|
return $this->success();
|
|
|
|
}
|
|
|
|
} |
...
|
...
|
|