Skip to content

Commit

Permalink
fix: cdn test
Browse files Browse the repository at this point in the history
  • Loading branch information
TRHX committed Aug 18, 2024
1 parent 9ad8ee4 commit 0204c6c
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
8 changes: 4 additions & 4 deletions data/advertisement.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
- item: Bright Data
# url: https://get.brightdata.com/17arn8
url: https://get.brightdata.com/proxyb
image: https://static.spiderapi.cn/spiderbox/images/ads/brightdata.png
image: images/ads/brightdata.png
description: Bright Data 亮数据,使用全球最大的 IP 网络,利用内置的抓取和解锁功能获得访问权,并简化数据提取
- item: 青果云
url: https://www.qg.net/product/proxyip.html?source=spiderbox
image: https://static.spiderapi.cn/spiderbox/images/ads/qg.jpg
image: images/ads/qg.jpg
description: 国内领先的企业级代理IP服务商
# - item: 芝麻 HTTP
# url: http://www.zmhttp.com/?utm-source=box&utm-keyword=?07
# image: https://static.spiderapi.cn/spiderbox/images/ads/zmhttp.jpg
# image: images/ads/zmhttp.jpg
# description: 企业级HTTP动(静)态代理IP服务提供商
# - item: 广告位出租
# # url: mailto:admin@itbob.cn
# image: https://static.spiderapi.cn/spiderbox/images/ads/ad_default.png
# image: images/ads/ad_default.png
# description: 广告位出租
2 changes: 1 addition & 1 deletion hugo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ publishDir = "docs" # 站点静态文件保存目录
author = "ITBOB"
keywords = "爬虫,逆向,JS逆向,APP逆向,数据采集,SpiderBox,虫盒,资源导航,爬虫资源,逆向资源,资源导航站"
description = "SpiderBox - 虫盒 - 爬虫逆向资源导航站,数据采集、网络爬虫、JS逆向、APP逆向、小程序逆向等相关资源聚合、收集。"
cdnURL = "https://static.spiderapi.cn/spiderbox/" # CDN 地址,置空则不使用 CDN
cdnURL = "https://static-upyun.spiderapi.cn/spiderbox/" # CDN 地址,置空则不使用 CDN
repository = "https://github.com/TRHX/SpiderBOX" # 左侧导航栏的"GitHub"
enablePreLoad = true # 网站完全打开前预加载动画
textPreLoad = "SpiderBox 加载中..." # 预加载的动画文字, 只有当enablePreLoad=true时生效
Expand Down
6 changes: 3 additions & 3 deletions themes/webstack/assets/js/spiderbox.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ $(document).ready(function () {
confirmButtonText: "俺知道了",
cancelButtonText: "烦死了,近期不再弹出!",
confirmButtonColor: "#0084ff",
imageUrl: "https://static.spiderapi.cn/spiderbox/images/qrcode/IT_BOB.jpg",
imageUrl: "https://static-upyun.spiderapi.cn/spiderbox/images/qrcode/IT_BOB.jpg",
// imageUrl: "https://spiderapi.cn/img/qrcode/gzh.png",
// imageWidth: 300,
// imageHeight: 300,
Expand Down Expand Up @@ -74,7 +74,7 @@ $(document).ready(function () {
confirmButtonText: "俺知道了",
confirmButtonColor: "#0084ff",
imageWidth: 420,
imageUrl: "https://static.spiderapi.cn/spiderbox/images/group.webp",
imageUrl: "https://static-upyun.spiderapi.cn/spiderbox/images/group.webp",
imageAlt: "QQ / 微信交流群",
showClass: {
popup: "swal2-show"
Expand Down Expand Up @@ -194,7 +194,7 @@ $(document).ready(function () {
// confirmButtonText: "俺知道了",
// confirmButtonColor: "#0084ff",
// imageWidth: 420,
// imageUrl: "https://static.spiderapi.cn/spiderbox/images/sponsor.webp",
// imageUrl: "https://static-upyun.spiderapi.cn/spiderbox/images/sponsor.webp",
// imageAlt: "微信 / 支付宝收款码",
// showClass: {
// popup: "swal2-show"
Expand Down
4 changes: 2 additions & 2 deletions themes/webstack/layouts/partials/content_main.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ <h4 class="text-gray text-lg mb-4">
<div class="card">
{{ if .url }}
<a href="{{ .url }}" target="_blank" data-url="{{ .url }}">
<img src="{{ .image }}" class="card-img-top" alt="{{ .description }}">
<img src="{{ with $.Site.Params.cdnURL }}{{ . }}{{ end }}{{ .image }}" class="card-img-top" alt="{{ .description }}">
</a>
{{ else }}
<img src="{{ .image }}" class="card-img-top" alt="{{ .description }}">
<img src="{{ with $.Site.Params.cdnURL }}{{ . }}{{ end }}{{ .image }}" class="card-img-top" alt="{{ .description }}">
{{ end }}
</div>
</div>
Expand Down

0 comments on commit 0204c6c

Please sign in to comment.