|
@@ -2,7 +2,7 @@
|
|
|
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
|
|
<!-- 首页 -->
|
|
|
<url>
|
|
|
- <loc>{{ url('/') }}</loc>
|
|
|
+ <loc>{{ secure_url('/') }}</loc>
|
|
|
<lastmod>{{ now()->toAtomString() }}</lastmod>
|
|
|
<changefreq>daily</changefreq>
|
|
|
<priority>1.0</priority>
|
|
@@ -11,7 +11,7 @@
|
|
|
<!-- 产品列表 -->
|
|
|
@foreach ($dist_products as $product)
|
|
|
<url>
|
|
|
- <loc>{{ route('products.detail', $product->id) }}</loc>
|
|
|
+ <loc>{{ str_replace('http://', 'https://', route('products.detail', $product->id)) }}</loc>
|
|
|
<lastmod>{{ $product->updated_at->toAtomString() }}</lastmod>
|
|
|
<changefreq>weekly</changefreq>
|
|
|
<priority>0.8</priority>
|
|
@@ -22,7 +22,7 @@
|
|
|
<!-- 文章列表 -->
|
|
|
@foreach ($dist_pages as $page)
|
|
|
<url>
|
|
|
- <loc>{{ $page->slug ? route('page.detail', $page->slug) : route('page.detail', $page->id) }}</loc>
|
|
|
+ <loc>{{ str_replace('http://', 'https://', $page->slug ? route('page.detail', $page->slug) : route('page.detail', $page->id)) }}</loc>
|
|
|
<lastmod>{{ $page->updated_at->toAtomString() }}</lastmod>
|
|
|
<changefreq>weekly</changefreq>
|
|
|
<priority>0.8</priority>
|