|
...
|
...
|
@@ -9,6 +9,7 @@ namespace App\Http\Controllers\Api; |
|
|
|
|
|
|
|
use App\Enums\Common\Code;
|
|
|
|
use App\Http\Logic\Bside\User\UserLoginLogic;
|
|
|
|
use App\Models\Ai\AiBlog;
|
|
|
|
use App\Models\Blog\Blog;
|
|
|
|
use App\Models\Domain\DomainInfo;
|
|
|
|
use App\Models\News\News;
|
|
...
|
...
|
@@ -313,16 +314,17 @@ class PrivateController extends BaseController |
|
|
|
ProjectServer::useProject($project->id);
|
|
|
|
$result = [];
|
|
|
|
// 查询有效时间后 有效的产品、新闻、博客、聚合页 链接
|
|
|
|
$product = Product::where(['status' => Product::STATUS_ON])->where('created_at', '>=', $date)->pluck('route');
|
|
|
|
// $product = Product::where(['status' => Product::STATUS_ON])->where('created_at', '>=', $date)->pluck('route');
|
|
|
|
$news = News::where(['status' => News::STATUS_ONE])->where('release_at', '>', $date)->pluck('url');
|
|
|
|
$blog = Blog::where(['status' => Blog::STATUS_ONE])->where('release_at', '>', $date)->pluck('url');
|
|
|
|
// $keyword = Keyword::where('created_at', '>', $date)->pluck('route');
|
|
|
|
$ai_blog = AiBlog::where(['status' => AiBlog::STATUS_FINISH])->where('updated_at', '>=', $date)->pluck('route');
|
|
|
|
|
|
|
|
// 组装链接
|
|
|
|
foreach ($product as $item) {
|
|
|
|
$url = 'https://' . $domain . '/' . $item;
|
|
|
|
array_push($result, $url);
|
|
|
|
}
|
|
|
|
// foreach ($product as $item) {
|
|
|
|
// $url = 'https://' . $domain . '/' . $item;
|
|
|
|
// array_push($result, $url);
|
|
|
|
// }
|
|
|
|
// foreach ($keyword as $item) {
|
|
|
|
// $url = 'https://' . $domain . '/' . $item;
|
|
|
|
// array_push($result, $url);
|
|
...
|
...
|
@@ -335,6 +337,10 @@ class PrivateController extends BaseController |
|
|
|
$url = 'https://' . $domain . '/blogs/' . $item;
|
|
|
|
array_push($result, $url);
|
|
|
|
}
|
|
|
|
foreach ($ai_blog as $item) {
|
|
|
|
$url = 'https://' . $domain . '/blog/' . $item;
|
|
|
|
array_push($result, $url);
|
|
|
|
}
|
|
|
|
return $this->success($result);
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|