Compare commits
9 Commits
v1.0.1
...
ci/standar
| Author | SHA1 | Date | |
|---|---|---|---|
| adb1328b75 | |||
| 6d590673ae | |||
| 89c7782768 | |||
| 59bbda7189 | |||
| 1c87a56081 | |||
| a4902897dd | |||
| 1af468c2ff | |||
| d3811181cb | |||
| 0273888747 |
48
.gitea/workflows-disabled/deploy-cloud.yml
Normal file
48
.gitea/workflows-disabled/deploy-cloud.yml
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
name: 发布-云端
|
||||||
|
# 审核 = 人工在 Gitea Actions 点 Run workflow,填入已推送的 tag 版本 → 部署公网
|
||||||
|
# 发布历史 = git tag 列表(git tag -l 'v*'),发布版本号 = tag 名
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
version:
|
||||||
|
description: '发布版本(已推送的 tag,如 v1.0.4)'
|
||||||
|
required: true
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: build-runner
|
||||||
|
env:
|
||||||
|
VERSION: ${{ inputs.version }}
|
||||||
|
steps:
|
||||||
|
- name: 校验版本号
|
||||||
|
run: |
|
||||||
|
if ! printf '%s' "$VERSION" | grep -Eq '^v[0-9]+\.[0-9]+\.[0-9]+$'; then
|
||||||
|
echo "❌ 版本号格式应为 vX.Y.Z,例如 v1.0.4"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
- name: 拉取代码(tag 版本)
|
||||||
|
run: |
|
||||||
|
git clone --depth 1 --branch "$VERSION" "http://dafe:${{ secrets.GITHUB_TOKEN }}@192.168.51.66:3000/dafe/homepage.git" site
|
||||||
|
|
||||||
|
- name: 注入发布版本号(缓存击穿,版本=tag 名)
|
||||||
|
run: |
|
||||||
|
cd site
|
||||||
|
sed -i "s/?v=[0-9]*/?v=${VERSION}/g" index.html
|
||||||
|
|
||||||
|
- name: 发布到 ubuntu2(阿里云正式机,公网 www.shashann.com)
|
||||||
|
env:
|
||||||
|
DEPLOY_KEY: ${{ secrets.DEPLOY_SSH_KEY }}
|
||||||
|
run: |
|
||||||
|
mkdir -p ~/.ssh && chmod 700 ~/.ssh
|
||||||
|
printf '%s\n' "$DEPLOY_KEY" > ~/.ssh/id_ed25519
|
||||||
|
chmod 600 ~/.ssh/id_ed25519
|
||||||
|
ssh-keyscan -H 101.133.145.181 >> ~/.ssh/known_hosts 2>/dev/null
|
||||||
|
cd site
|
||||||
|
ssh root@101.133.145.181 'mkdir -p /var/www/shashann-homepage && find /var/www/shashann-homepage -mindepth 1 -maxdepth 1 -exec rm -rf {} +'
|
||||||
|
tar czf - index.html assets robots.txt sitemap.xml llms.txt | ssh root@101.133.145.181 'tar xzf - -C /var/www/shashann-homepage'
|
||||||
|
|
||||||
|
- name: 上线验证
|
||||||
|
run: |
|
||||||
|
curl -s -f -o /dev/null --noproxy '*' --resolve www.shashann.com:443:101.133.145.181 https://www.shashann.com/ || { echo "❌ 公网验证失败"; exit 1; }
|
||||||
|
echo "✅ 云端已发布 ${VERSION} $(date '+%H:%M:%S')"
|
||||||
@@ -29,7 +29,7 @@ jobs:
|
|||||||
cd site
|
cd site
|
||||||
# 清空后解压 = rsync --delete 的等效语义,服务器与 git 状态严格一致
|
# 清空后解压 = rsync --delete 的等效语义,服务器与 git 状态严格一致
|
||||||
ssh ubuntu@192.168.51.66 'mkdir -p /home/ubuntu/homepage-site && find /home/ubuntu/homepage-site -mindepth 1 -maxdepth 1 -exec rm -rf {} +'
|
ssh ubuntu@192.168.51.66 'mkdir -p /home/ubuntu/homepage-site && find /home/ubuntu/homepage-site -mindepth 1 -maxdepth 1 -exec rm -rf {} +'
|
||||||
tar czf - index.html assets | ssh ubuntu@192.168.51.66 'tar xzf - -C /home/ubuntu/homepage-site'
|
tar czf - index.html assets robots.txt sitemap.xml llms.txt | ssh ubuntu@192.168.51.66 'tar xzf - -C /home/ubuntu/homepage-site'
|
||||||
|
|
||||||
- name: 上线验证
|
- name: 上线验证
|
||||||
run: |
|
run: |
|
||||||
@@ -1,36 +0,0 @@
|
|||||||
name: 发布-云端
|
|
||||||
# 审核 = 人工决定打不打 tag:push v* 标签即发布公网
|
|
||||||
# 发布历史 = git tag 列表(git tag -l 'v*'),发布版本号 = tag 名
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
tags: ['v*']
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
deploy:
|
|
||||||
runs-on: build-runner
|
|
||||||
steps:
|
|
||||||
- name: 拉取代码(tag 版本)
|
|
||||||
run: |
|
|
||||||
git clone --depth 1 --branch "${GITHUB_REF_NAME}" "http://dafe:${{ secrets.GITHUB_TOKEN }}@192.168.51.66:3000/dafe/homepage.git" site
|
|
||||||
|
|
||||||
- name: 注入发布版本号(缓存击穿,版本=tag 名)
|
|
||||||
run: |
|
|
||||||
cd site
|
|
||||||
sed -i "s/?v=[0-9]*/?v=${GITHUB_REF_NAME}/g" index.html
|
|
||||||
|
|
||||||
- name: 发布到 ubuntu3(公网 www.shashann.com)
|
|
||||||
env:
|
|
||||||
DEPLOY_KEY: ${{ secrets.DEPLOY_SSH_KEY }}
|
|
||||||
run: |
|
|
||||||
mkdir -p ~/.ssh && chmod 700 ~/.ssh
|
|
||||||
printf '%s\n' "$DEPLOY_KEY" > ~/.ssh/id_ed25519
|
|
||||||
chmod 600 ~/.ssh/id_ed25519
|
|
||||||
ssh-keyscan -H 124.222.157.76 >> ~/.ssh/known_hosts 2>/dev/null
|
|
||||||
cd site
|
|
||||||
ssh ubuntu@124.222.157.76 'mkdir -p /var/www/shashann-homepage && find /var/www/shashann-homepage -mindepth 1 -maxdepth 1 -exec rm -rf {} +'
|
|
||||||
tar czf - index.html assets | ssh ubuntu@124.222.157.76 'tar xzf - -C /var/www/shashann-homepage'
|
|
||||||
|
|
||||||
- name: 上线验证
|
|
||||||
run: |
|
|
||||||
curl -s -f -o /dev/null --resolve www.shashann.com:443:124.222.157.76 https://www.shashann.com/ || { echo "❌ 公网验证失败"; exit 1; }
|
|
||||||
echo "✅ 云端已发布 ${GITHUB_REF_NAME} $(date '+%H:%M:%S')"
|
|
||||||
146
.gitea/workflows/deploy.yml
Normal file
146
.gitea/workflows/deploy.yml
Normal file
@@ -0,0 +1,146 @@
|
|||||||
|
# standard: 2 @ v1
|
||||||
|
# =============================================================================
|
||||||
|
# CI/CD 规范 2:push → 局域网自动发布;云端(ubuntu2)手动确认后发布
|
||||||
|
#
|
||||||
|
# 必需 hook:ci/test.sh、deploy/lan.sh、deploy/cloud.sh
|
||||||
|
# 可选 hook:deploy/health-lan.sh、deploy/health-cloud.sh
|
||||||
|
#
|
||||||
|
# 本文件是完整可执行版本。项目侧复制到 .gitea/workflows/deploy.yml,
|
||||||
|
# 只改这一行版本号,不要改正文。
|
||||||
|
#
|
||||||
|
# 边界:云端只写 ubuntu2(101.133.145.181),不切 DNS、不碰 ShannonProd。
|
||||||
|
# 验证必须用 --resolve 指向 ubuntu2,不能依赖公网 DNS 当前指向。
|
||||||
|
#
|
||||||
|
# Gitea 1.24 忽略 concurrency / timeout-minutes / environment,
|
||||||
|
# 因此串行依赖 deploy-runner capacity=1,超时由 shell timeout 控制。
|
||||||
|
# =============================================================================
|
||||||
|
name: CI-CD-2
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
pull_request:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
ref:
|
||||||
|
description: "要发布的 commit/tag(留空 = 当前 main HEAD)"
|
||||||
|
required: false
|
||||||
|
default: ""
|
||||||
|
|
||||||
|
env:
|
||||||
|
GITEA_URL: ${{ github.server_url }}
|
||||||
|
GITEA_REPO: ${{ github.repository }}
|
||||||
|
GITEA_SHA: ${{ github.sha }}
|
||||||
|
GITEA_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
CLOUD_TARGET: ubuntu2
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
name: test
|
||||||
|
runs-on: build-runner
|
||||||
|
steps:
|
||||||
|
- name: 拉取源码
|
||||||
|
env:
|
||||||
|
INPUT_REF: ${{ inputs.ref }}
|
||||||
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
# 手动发布/回滚时测的是目标 ref,不是当前 main HEAD;门禁不能被绕过
|
||||||
|
TEST_REF="${INPUT_REF:-$GITEA_SHA}"
|
||||||
|
echo "TEST_REF=${TEST_REF}"
|
||||||
|
curl -fsSL -H "Authorization: token ${GITEA_TOKEN}" \
|
||||||
|
"${GITEA_URL}/api/v1/repos/${GITEA_REPO}/archive/${TEST_REF}.tar.gz" \
|
||||||
|
-o /tmp/src.tar.gz
|
||||||
|
rm -rf /src && mkdir -p /src
|
||||||
|
tar xzf /tmp/src.tar.gz -C /src --strip-components=1
|
||||||
|
|
||||||
|
- name: 质量门禁(强制)
|
||||||
|
working-directory: /src
|
||||||
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
[ -f ci/test.sh ] || { echo "缺少 ci/test.sh(规范 2 强制)"; exit 1; }
|
||||||
|
timeout 1800 bash ci/test.sh
|
||||||
|
|
||||||
|
deploy-lan:
|
||||||
|
name: deploy-lan
|
||||||
|
needs: test
|
||||||
|
# 手动 dispatch 也必须有 test 成功,不允许绕过门禁。
|
||||||
|
if: >-
|
||||||
|
always() && needs.test.result == 'success' && (
|
||||||
|
(github.event_name == 'push' && github.ref == 'refs/heads/main')
|
||||||
|
|| github.event_name == 'workflow_dispatch'
|
||||||
|
)
|
||||||
|
runs-on: deploy-runner
|
||||||
|
env:
|
||||||
|
DEPLOY_SSH_KEY: ${{ secrets.DEPLOY_SSH_KEY }}
|
||||||
|
CLOUD_SSH_KEY: ${{ secrets.CLOUD_SSH_KEY }}
|
||||||
|
steps:
|
||||||
|
- name: 拉取待发布版本
|
||||||
|
env:
|
||||||
|
INPUT_REF: ${{ inputs.ref }}
|
||||||
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
TARGET_REF="${INPUT_REF:-$GITEA_SHA}"
|
||||||
|
echo "TARGET_REF=${TARGET_REF}" >> "$GITHUB_ENV"
|
||||||
|
curl -fsSL -H "Authorization: token ${GITEA_TOKEN}" \
|
||||||
|
"${GITEA_URL}/api/v1/repos/${GITEA_REPO}/archive/${TARGET_REF}.tar.gz" \
|
||||||
|
-o /tmp/src.tar.gz
|
||||||
|
rm -rf /src && mkdir -p /src
|
||||||
|
tar xzf /tmp/src.tar.gz -C /src --strip-components=1
|
||||||
|
|
||||||
|
- name: 局域网部署
|
||||||
|
working-directory: /src
|
||||||
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
[ -f deploy/lan.sh ] || { echo "缺少 deploy/lan.sh(规范 2 强制)"; exit 1; }
|
||||||
|
timeout 1800 bash deploy/lan.sh
|
||||||
|
|
||||||
|
- name: 局域网健康检查
|
||||||
|
working-directory: /src
|
||||||
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
if [ -f deploy/health-lan.sh ]; then
|
||||||
|
timeout 300 bash deploy/health-lan.sh
|
||||||
|
else
|
||||||
|
echo "INFO: 无 deploy/health-lan.sh,跳过"
|
||||||
|
fi
|
||||||
|
|
||||||
|
deploy-cloud:
|
||||||
|
name: deploy-cloud
|
||||||
|
needs: deploy-lan
|
||||||
|
# 只有人工点 Run workflow 才会进入;push 永远不自动上云
|
||||||
|
if: >-
|
||||||
|
always() && github.event_name == 'workflow_dispatch'
|
||||||
|
&& needs.deploy-lan.result == 'success'
|
||||||
|
runs-on: deploy-runner
|
||||||
|
env:
|
||||||
|
DEPLOY_SSH_KEY: ${{ secrets.DEPLOY_SSH_KEY }}
|
||||||
|
CLOUD_SSH_KEY: ${{ secrets.CLOUD_SSH_KEY }}
|
||||||
|
steps:
|
||||||
|
- name: 拉取待发布版本
|
||||||
|
env:
|
||||||
|
INPUT_REF: ${{ inputs.ref }}
|
||||||
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
TARGET_REF="${INPUT_REF:-$GITEA_SHA}"
|
||||||
|
echo "TARGET_REF=${TARGET_REF}" >> "$GITHUB_ENV"
|
||||||
|
curl -fsSL -H "Authorization: token ${GITEA_TOKEN}" \
|
||||||
|
"${GITEA_URL}/api/v1/repos/${GITEA_REPO}/archive/${TARGET_REF}.tar.gz" \
|
||||||
|
-o /tmp/src.tar.gz
|
||||||
|
rm -rf /src && mkdir -p /src
|
||||||
|
tar xzf /tmp/src.tar.gz -C /src --strip-components=1
|
||||||
|
|
||||||
|
- name: 云端部署(人工确认后)
|
||||||
|
working-directory: /src
|
||||||
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
[ -f deploy/cloud.sh ] || { echo "缺少 deploy/cloud.sh(规范 2 强制)"; exit 1; }
|
||||||
|
timeout 1800 bash deploy/cloud.sh ubuntu2
|
||||||
|
|
||||||
|
- name: 云端健康检查
|
||||||
|
working-directory: /src
|
||||||
|
run: |
|
||||||
|
set -euo pipefail
|
||||||
|
if [ -f deploy/health-cloud.sh ]; then
|
||||||
|
timeout 300 bash deploy/health-cloud.sh
|
||||||
|
else
|
||||||
|
echo "INFO: 无 deploy/health-cloud.sh,跳过"
|
||||||
|
fi
|
||||||
@@ -583,6 +583,36 @@ html[lang="en"] .tags span { font-size: 11px; }
|
|||||||
.footer-brand span { font-size: 14px; color: var(--muted); }
|
.footer-brand span { font-size: 14px; color: var(--muted); }
|
||||||
.footer-copy { font-size: 13px; color: var(--muted); }
|
.footer-copy { font-size: 13px; color: var(--muted); }
|
||||||
|
|
||||||
|
/* ============================================================
|
||||||
|
FAQ 手风琴(原生 details/summary,零 JS;描边手法复用 .card)
|
||||||
|
============================================================ */
|
||||||
|
.faq-list { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
|
||||||
|
.faq-item {
|
||||||
|
border-radius: 14px;
|
||||||
|
background:
|
||||||
|
linear-gradient(var(--bg-1), var(--bg-1)) padding-box,
|
||||||
|
linear-gradient(140deg, rgba(76, 195, 255, 0.28), rgba(148, 178, 255, 0.06) 40%, rgba(255, 61, 90, 0.24)) border-box;
|
||||||
|
border: 1px solid transparent;
|
||||||
|
padding: 16px 22px;
|
||||||
|
}
|
||||||
|
.faq-item summary {
|
||||||
|
cursor: pointer;
|
||||||
|
font-weight: 600;
|
||||||
|
font-size: 15px;
|
||||||
|
list-style: none;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
gap: 12px;
|
||||||
|
color: var(--text);
|
||||||
|
}
|
||||||
|
.faq-item summary::-webkit-details-marker { display: none; }
|
||||||
|
/* 用 + 号旋转做展开指示,免图标资源 */
|
||||||
|
.faq-item summary::after { content: '+'; color: var(--muted); font-size: 18px; transition: transform 0.2s; }
|
||||||
|
.faq-item[open] summary::after { transform: rotate(45deg); }
|
||||||
|
.faq-item p { margin-top: 12px; font-size: 14px; line-height: 1.8; color: var(--muted); }
|
||||||
|
|
||||||
|
|
||||||
/* ============================================================
|
/* ============================================================
|
||||||
滚动淡入
|
滚动淡入
|
||||||
============================================================ */
|
============================================================ */
|
||||||
|
|||||||
@@ -96,6 +96,20 @@
|
|||||||
'contact.sub': 'Scan the QR code, or email us about your digital upgrade needs.',
|
'contact.sub': 'Scan the QR code, or email us about your digital upgrade needs.',
|
||||||
'contact.company': 'Suzhou Shashann Technology Co., Ltd.',
|
'contact.company': 'Suzhou Shashann Technology Co., Ltd.',
|
||||||
'contact.loc': 'R&D & Production Bases: Nanjing · Zhangjiagang · Changzhou',
|
'contact.loc': 'R&D & Production Bases: Nanjing · Zhangjiagang · Changzhou',
|
||||||
|
// 常见问题
|
||||||
|
'faq.title': 'FAQ',
|
||||||
|
'faq.q1': 'What is a smart collar?',
|
||||||
|
'faq.a1': 'A smart collar is an IoT device worn around the neck of cattle, sheep and other livestock, combining positioning, vitals monitoring and geofence alarms for data-driven grazing. Shashann SG03 is solar-powered with voice calling, smart find, satellite comms and music playback; SG03 mini goes long battery + wireless charging.',
|
||||||
|
'faq.q2': 'Ear tag or smart collar — which should I choose?',
|
||||||
|
'faq.a2': 'Ear tags answer "many animals, cost-sensitive" tracking: ST01 supports mesh networking, loss alarms and LED find. Collars answer "deep management of key animals": positioning, vitals monitoring and voice calling. For open-range grazing, combine ear tags with the BG01 base station, and add collars for breeding stock and high-value animals.',
|
||||||
|
'faq.q3': 'What is the difference between UWB tags and Bluetooth tags?',
|
||||||
|
'faq.a3': 'The UWB tag SL01 delivers centimeter-level positioning with fall detection and helmet mounting — for construction sites and precision tracking. The Bluetooth tag ST02 focuses on LED find and buzzer alarms at ultra-low power and low cost — for everyday asset loss prevention. Choose UWB when you need exact positions, Bluetooth when you just need to find things.',
|
||||||
|
'faq.q4': 'Is the smart hydroponic grow rack for homes or schools?',
|
||||||
|
'faq.a4': 'Both. HS01 is a standalone cabinet design that is easy to expand, supporting both unattended AI mode and manual control: families use AI mode to grow food at home, while school labor courses use manual mode so students take part in the whole process.',
|
||||||
|
'faq.q5': 'What is a digital-twin beam yard system?',
|
||||||
|
'faq.a5': 'A digital-twin beam yard system maps production, materials, resettlement and bridge management of precast beam yards into computable digital models. Shashann delivers it as a complete package: SaaS platform + WeChat mini program + multi-sensor data access.',
|
||||||
|
'faq.q6': 'What software platforms come with Shashann hardware?',
|
||||||
|
'faq.a6': 'Every hardware line ships with a companion SaaS platform and APP/WeChat mini program, with device data flowing straight to the cloud: Smart Grazing System (multi-account ranch management, geofence alarms, full lifecycle traceability), Smart Hydroponics System (auto planting adjustment, AI assistant) and Smart Asset Management System (real-time state computation, predictive maintenance).',
|
||||||
// Footer
|
// Footer
|
||||||
'footer.slogan': 'Powering digital transformation with AIoT',
|
'footer.slogan': 'Powering digital transformation with AIoT',
|
||||||
'footer.name': 'Suzhou Shashann Technology Co., Ltd.',
|
'footer.name': 'Suzhou Shashann Technology Co., Ltd.',
|
||||||
@@ -131,8 +145,8 @@
|
|||||||
});
|
});
|
||||||
document.getElementById('langToggle').textContent = l === 'zh' ? 'EN' : '中文';
|
document.getElementById('langToggle').textContent = l === 'zh' ? 'EN' : '中文';
|
||||||
document.title = l === 'zh'
|
document.title = l === 'zh'
|
||||||
? '苏州沙香科技有限公司 — AIoT 智能硬件与数字化平台'
|
? '智能项圈_智能水培种植架_UWB定位标签_数字孪生定制 - 苏州沙香科技'
|
||||||
: 'Suzhou Shashann Technology — AIoT Smart Hardware & Digital Platforms';
|
: 'Smart Collar_Hydroponic Grow Rack_UWB Tag_Digital Twin - Suzhou Shashann';
|
||||||
}
|
}
|
||||||
|
|
||||||
document.getElementById('langToggle').addEventListener('click', function () {
|
document.getElementById('langToggle').addEventListener('click', function () {
|
||||||
|
|||||||
26
ci/test.sh
Executable file
26
ci/test.sh
Executable file
@@ -0,0 +1,26 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# 静态站门禁:关键文件存在 + HTML 引用的本地资源都存在
|
||||||
|
set -euo pipefail
|
||||||
|
cd "$(dirname "$0")/.."
|
||||||
|
|
||||||
|
for file in index.html robots.txt sitemap.xml llms.txt assets/css/style.css assets/js/main.js; do
|
||||||
|
[ -f "$file" ] || { echo "缺少 $file"; exit 1; }
|
||||||
|
done
|
||||||
|
|
||||||
|
grep -q 'assets/css/style.css?v=' index.html || { echo "index.html 缺少 CSS 版本参数"; exit 1; }
|
||||||
|
grep -q 'assets/js/main.js?v=' index.html || { echo "index.html 缺少 JS 版本参数"; exit 1; }
|
||||||
|
|
||||||
|
python3 - <<'PY'
|
||||||
|
import os
|
||||||
|
import re
|
||||||
|
import sys
|
||||||
|
|
||||||
|
html = open("index.html", encoding="utf-8").read()
|
||||||
|
refs = set(re.findall(r'(?:src|href)="(assets/[^"]+)"', html))
|
||||||
|
missing = sorted(ref for ref in refs if not os.path.exists(ref.split("?")[0]))
|
||||||
|
if missing:
|
||||||
|
print("index.html 引用了不存在的资源:")
|
||||||
|
print("\n".join(missing))
|
||||||
|
sys.exit(1)
|
||||||
|
print(f"资源引用检查通过({len(refs)} 个)")
|
||||||
|
PY
|
||||||
48
deploy/cloud.sh
Executable file
48
deploy/cloud.sh
Executable file
@@ -0,0 +1,48 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# 发布到 ubuntu2(101.133.145.181:/var/www/shashann-homepage)
|
||||||
|
# 注意:不切 DNS、不碰 ShannonProd;公网验证用 health-cloud.sh 的 --resolve。
|
||||||
|
set -euo pipefail
|
||||||
|
cd "$(dirname "$0")/.."
|
||||||
|
|
||||||
|
TARGET="${1:-}"
|
||||||
|
case "$TARGET" in
|
||||||
|
ubuntu2)
|
||||||
|
SSH_HOST="root@101.133.145.181"
|
||||||
|
DEPLOY_DIR="/var/www/shashann-homepage"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo "不支持的目标: $TARGET"
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# 手动发布按 tag 注入版本;普通提交按短 SHA
|
||||||
|
VERSION="${TARGET_REF:-$GITEA_SHA}"
|
||||||
|
if printf '%s' "$VERSION" | grep -Eq '^v[0-9]+\.[0-9]+\.[0-9]+$'; then
|
||||||
|
VERSION="${VERSION#v}"
|
||||||
|
else
|
||||||
|
VERSION="${GITEA_SHA:0:8}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
python3 - "$VERSION" <<'PY'
|
||||||
|
import re
|
||||||
|
import sys
|
||||||
|
|
||||||
|
version = sys.argv[1]
|
||||||
|
path = "index.html"
|
||||||
|
html = open(path, encoding="utf-8").read()
|
||||||
|
html = re.sub(r'(assets/css/style\.css)\?v=[^"\']*', r"\1?v=" + version, html)
|
||||||
|
html = re.sub(r'(assets/js/main\.js)\?v=[^"\']*', r"\1?v=" + version, html)
|
||||||
|
open(path, "w", encoding="utf-8").write(html)
|
||||||
|
PY
|
||||||
|
|
||||||
|
mkdir -p ~/.ssh && chmod 700 ~/.ssh
|
||||||
|
printf '%s\n' "${DEPLOY_SSH_KEY:?DEPLOY_SSH_KEY 未配置}" > ~/.ssh/id_ed25519
|
||||||
|
chmod 600 ~/.ssh/id_ed25519
|
||||||
|
ssh-keyscan -H 101.133.145.181 >> ~/.ssh/known_hosts 2>/dev/null || true
|
||||||
|
|
||||||
|
ssh "$SSH_HOST" "mkdir -p ${DEPLOY_DIR} && find ${DEPLOY_DIR} -mindepth 1 -maxdepth 1 -exec rm -rf {} +"
|
||||||
|
tar czf - index.html assets robots.txt sitemap.xml llms.txt \
|
||||||
|
| ssh "$SSH_HOST" "tar xzf - -C ${DEPLOY_DIR}"
|
||||||
|
|
||||||
|
echo "ubuntu2 已发布 ${VERSION}"
|
||||||
8
deploy/health-cloud.sh
Executable file
8
deploy/health-cloud.sh
Executable file
@@ -0,0 +1,8 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# 只验证 ubuntu2 上的副本;DNS 当前仍指向 ShannonProd,不能按公网 DNS 判断。
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
curl -skf -m 10 --noproxy '*' \
|
||||||
|
--resolve www.shashann.com:443:101.133.145.181 \
|
||||||
|
https://www.shashann.com/ > /dev/null
|
||||||
|
echo "OK ubuntu2 https://www.shashann.com/ (101.133.145.181)"
|
||||||
13
deploy/health-lan.sh
Executable file
13
deploy/health-lan.sh
Executable file
@@ -0,0 +1,13 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
for _ in $(seq 1 10); do
|
||||||
|
if curl -skf -m 5 --noproxy '*' https://192.168.51.66/homepage/ > /dev/null; then
|
||||||
|
echo "OK https://192.168.51.66/homepage/"
|
||||||
|
exit 0
|
||||||
|
fi
|
||||||
|
sleep 3
|
||||||
|
done
|
||||||
|
|
||||||
|
echo "FAIL https://192.168.51.66/homepage/"
|
||||||
|
exit 1
|
||||||
30
deploy/lan.sh
Executable file
30
deploy/lan.sh
Executable file
@@ -0,0 +1,30 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# 发布到局域网 192.168.51.66:/home/ubuntu/homepage-site
|
||||||
|
set -euo pipefail
|
||||||
|
cd "$(dirname "$0")/.."
|
||||||
|
|
||||||
|
STAMP="${GITEA_SHA:0:8}"
|
||||||
|
[ -n "$STAMP" ] || { echo "GITEA_SHA 为空"; exit 1; }
|
||||||
|
|
||||||
|
python3 - "$STAMP" <<'PY'
|
||||||
|
import re
|
||||||
|
import sys
|
||||||
|
|
||||||
|
stamp = sys.argv[1]
|
||||||
|
path = "index.html"
|
||||||
|
html = open(path, encoding="utf-8").read()
|
||||||
|
html = re.sub(r'(assets/css/style\.css)\?v=[^"\']*', r"\1?v=" + stamp, html)
|
||||||
|
html = re.sub(r'(assets/js/main\.js)\?v=[^"\']*', r"\1?v=" + stamp, html)
|
||||||
|
open(path, "w", encoding="utf-8").write(html)
|
||||||
|
PY
|
||||||
|
|
||||||
|
mkdir -p ~/.ssh && chmod 700 ~/.ssh
|
||||||
|
printf '%s\n' "${DEPLOY_SSH_KEY:?DEPLOY_SSH_KEY 未配置}" > ~/.ssh/id_ed25519
|
||||||
|
chmod 600 ~/.ssh/id_ed25519
|
||||||
|
ssh-keyscan -H 192.168.51.66 >> ~/.ssh/known_hosts 2>/dev/null || true
|
||||||
|
|
||||||
|
ssh ubuntu@192.168.51.66 'mkdir -p /home/ubuntu/homepage-site && find /home/ubuntu/homepage-site -mindepth 1 -maxdepth 1 -exec rm -rf {} +'
|
||||||
|
tar czf - index.html assets robots.txt sitemap.xml llms.txt \
|
||||||
|
| ssh ubuntu@192.168.51.66 'tar xzf - -C /home/ubuntu/homepage-site'
|
||||||
|
|
||||||
|
echo "局域网已发布 ${STAMP}"
|
||||||
120
index.html
120
index.html
@@ -3,12 +3,15 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>苏州沙香科技有限公司 — AIoT 智能硬件与数字化平台</title>
|
<title>智能项圈_智能水培种植架_UWB定位标签_数字孪生定制 - 苏州沙香科技</title>
|
||||||
<meta name="description" content="苏州沙香科技是用人工智能、边缘计算、云计算与低功耗物联网技术,为行业数字化升级提供智能硬件产品与软件服务平台的 AIoT 公司。业务覆盖数字畜牧、智慧种植、设备资产管理与定制软件系统开发。">
|
<meta name="description" content="苏州沙香科技是AIoT科技公司,自研智能项圈、蓝牙耳标、智能水培种植架、UWB定位标签等智能硬件及配套SaaS平台。"一带一路"中国名片产品,服务智慧牧场、智能种植、设备资产管理与定制开发。">
|
||||||
<meta property="og:title" content="苏州沙香科技有限公司 — AIoT 智能硬件与数字化平台">
|
<link rel="canonical" href="https://www.shashann.com/">
|
||||||
<meta property="og:description" content="用 AIoT 驱动产业数字化升级:智能项圈、智能耳标、水培种植架、UWB 标签等自研硬件,与配套 SaaS 平台。">
|
<meta property="og:title" content="智能项圈_智能水培种植架_UWB定位标签_数字孪生定制 - 苏州沙香科技">
|
||||||
|
<meta property="og:description" content="苏州沙香科技是AIoT科技公司,自研智能项圈、蓝牙耳标、智能水培种植架、UWB定位标签等智能硬件及配套SaaS平台。"一带一路"中国名片产品,服务智慧牧场、智能种植、设备资产管理与定制开发。">
|
||||||
<meta property="og:type" content="website">
|
<meta property="og:type" content="website">
|
||||||
<meta property="og:image" content="assets/img/hero-bg.webp">
|
<meta property="og:url" content="https://www.shashann.com/">
|
||||||
|
<meta property="og:locale" content="zh_CN">
|
||||||
|
<meta property="og:image" content="https://www.shashann.com/assets/img/hero-bg.webp">
|
||||||
<link rel="icon" type="image/png" sizes="180x180" href="assets/img/favicon.png">
|
<link rel="icon" type="image/png" sizes="180x180" href="assets/img/favicon.png">
|
||||||
<link rel="apple-touch-icon" href="assets/img/favicon.png">
|
<link rel="apple-touch-icon" href="assets/img/favicon.png">
|
||||||
<link rel="stylesheet" href="assets/css/style.css?v=202611021031">
|
<link rel="stylesheet" href="assets/css/style.css?v=202611021031">
|
||||||
@@ -98,7 +101,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="product-grid">
|
<div class="product-grid">
|
||||||
<article class="card product reveal">
|
<article class="card product reveal">
|
||||||
<div class="product-media"><img src="assets/img/collar-sg03-mini.webp" alt="智能项圈 SG03 mini" loading="lazy"></div>
|
<div class="product-media"><img src="assets/img/collar-sg03-mini.webp" alt="智能项圈 SG03 mini——长续航、无线充电、围栏报警、生理监测" loading="lazy"></div>
|
||||||
<div class="product-body">
|
<div class="product-body">
|
||||||
<h3 data-i18n="grazing.p1n">智能项圈 SG03 mini</h3>
|
<h3 data-i18n="grazing.p1n">智能项圈 SG03 mini</h3>
|
||||||
<div class="tags">
|
<div class="tags">
|
||||||
@@ -107,7 +110,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
<article class="card product reveal">
|
<article class="card product reveal">
|
||||||
<div class="product-media"><img src="assets/img/collar-sg03.webp" alt="智能项圈 SG03" loading="lazy"></div>
|
<div class="product-media"><img src="assets/img/collar-sg03.webp" alt="智能项圈 SG03——太阳能供电、语音召唤、卫星通信、围栏报警" loading="lazy"></div>
|
||||||
<div class="product-body">
|
<div class="product-body">
|
||||||
<h3 data-i18n="grazing.p2n">智能项圈 SG03</h3>
|
<h3 data-i18n="grazing.p2n">智能项圈 SG03</h3>
|
||||||
<div class="tags">
|
<div class="tags">
|
||||||
@@ -116,7 +119,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
<article class="card product reveal">
|
<article class="card product reveal">
|
||||||
<div class="product-media"><img src="assets/img/ear-tag-st01.webp" alt="智能蓝牙耳标 ST01" loading="lazy"></div>
|
<div class="product-media"><img src="assets/img/ear-tag-st01.webp" alt="智能蓝牙耳标 ST01——集群组网、丢失报警、亮灯寻找" loading="lazy"></div>
|
||||||
<div class="product-body">
|
<div class="product-body">
|
||||||
<h3 data-i18n="grazing.p3n">智能蓝牙耳标 ST01</h3>
|
<h3 data-i18n="grazing.p3n">智能蓝牙耳标 ST01</h3>
|
||||||
<div class="tags">
|
<div class="tags">
|
||||||
@@ -125,7 +128,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
<article class="card product reveal">
|
<article class="card product reveal">
|
||||||
<div class="product-media"><img src="assets/img/base-station-bg01.webp" alt="智能蓝牙基站 BG01" loading="lazy"></div>
|
<div class="product-media"><img src="assets/img/base-station-bg01.webp" alt="智能蓝牙基站 BG01——超1000连接数、高精定位、集群报警" loading="lazy"></div>
|
||||||
<div class="product-body">
|
<div class="product-body">
|
||||||
<h3 data-i18n="grazing.p4n">智能蓝牙基站 BG01</h3>
|
<h3 data-i18n="grazing.p4n">智能蓝牙基站 BG01</h3>
|
||||||
<div class="tags">
|
<div class="tags">
|
||||||
@@ -152,7 +155,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="feature-row reveal">
|
<div class="feature-row reveal">
|
||||||
<div class="card product product-hero">
|
<div class="card product product-hero">
|
||||||
<div class="product-media"><img src="assets/img/hydroponics-hs01.webp" alt="智能水培种植架 HS01" class="framed" loading="lazy"></div>
|
<div class="product-media"><img src="assets/img/hydroponics-hs01.webp" alt="智能水培种植架 HS01——自动水循环、自动施肥、无人AI种植" class="framed" loading="lazy"></div>
|
||||||
<div class="product-body">
|
<div class="product-body">
|
||||||
<h3 data-i18n="planting.p1n">智能水培种植架 HS01</h3>
|
<h3 data-i18n="planting.p1n">智能水培种植架 HS01</h3>
|
||||||
<p class="product-note" data-i18n="planting.p1note">独立柜设计,方便扩展;支持无人 AI 种植模式与手动控制模式。</p>
|
<p class="product-note" data-i18n="planting.p1note">独立柜设计,方便扩展;支持无人 AI 种植模式与手动控制模式。</p>
|
||||||
@@ -182,7 +185,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="product-grid product-grid-3">
|
<div class="product-grid product-grid-3">
|
||||||
<article class="card product reveal">
|
<article class="card product reveal">
|
||||||
<div class="product-media"><img src="assets/img/terminal-bb03.webp" alt="智能终端 BB03" loading="lazy"></div>
|
<div class="product-media"><img src="assets/img/terminal-bb03.webp" alt="智能终端 BB03——边缘计算、高精定位、即粘即用" loading="lazy"></div>
|
||||||
<div class="product-body">
|
<div class="product-body">
|
||||||
<h3 data-i18n="asset.p1n">智能终端 BB03</h3>
|
<h3 data-i18n="asset.p1n">智能终端 BB03</h3>
|
||||||
<p class="product-note" data-i18n="asset.p1note">边缘计算算法精度高,准确识别设备/资产当前状态。</p>
|
<p class="product-note" data-i18n="asset.p1note">边缘计算算法精度高,准确识别设备/资产当前状态。</p>
|
||||||
@@ -192,7 +195,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
<article class="card product reveal">
|
<article class="card product reveal">
|
||||||
<div class="product-media"><img src="assets/img/uwb-tag-sl01.webp" alt="UWB 智能标签 SL01" loading="lazy"></div>
|
<div class="product-media"><img src="assets/img/uwb-tag-sl01.webp" alt="UWB 智能标签 SL01——厘米级定位、跌落报警、可配安全帽" loading="lazy"></div>
|
||||||
<div class="product-body">
|
<div class="product-body">
|
||||||
<h3 data-i18n="asset.p2n">UWB 智能标签 SL01</h3>
|
<h3 data-i18n="asset.p2n">UWB 智能标签 SL01</h3>
|
||||||
<p class="product-note" data-i18n="asset.p2note">可配合安全帽使用,安装方便。</p>
|
<p class="product-note" data-i18n="asset.p2note">可配合安全帽使用,安装方便。</p>
|
||||||
@@ -202,7 +205,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</article>
|
</article>
|
||||||
<article class="card product reveal">
|
<article class="card product reveal">
|
||||||
<div class="product-media"><img src="assets/img/bt-tag-st02.webp" alt="蓝牙智能标签 ST02" loading="lazy"></div>
|
<div class="product-media"><img src="assets/img/bt-tag-st02.webp" alt="蓝牙智能标签 ST02——亮灯寻找、蜂鸣报警、超低功耗" loading="lazy"></div>
|
||||||
<div class="product-body">
|
<div class="product-body">
|
||||||
<h3 data-i18n="asset.p3n">蓝牙智能标签 ST02</h3>
|
<h3 data-i18n="asset.p3n">蓝牙智能标签 ST02</h3>
|
||||||
<div class="tags">
|
<div class="tags">
|
||||||
@@ -335,6 +338,42 @@
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
<!-- ===================== 常见问题 ===================== -->
|
||||||
|
<section id="faq" class="section">
|
||||||
|
<div class="container">
|
||||||
|
<header class="section-head reveal">
|
||||||
|
<p class="eyebrow">FAQ</p>
|
||||||
|
<h2 data-i18n="faq.title">常见问题</h2>
|
||||||
|
</header>
|
||||||
|
<div class="faq-list">
|
||||||
|
<details class="faq-item reveal">
|
||||||
|
<summary data-i18n="faq.q1">智能项圈是什么?</summary>
|
||||||
|
<p data-i18n="faq.a1">智能项圈是佩戴在牛羊等牲畜颈部的物联网设备,集成定位、生理监测与围栏报警能力,用于数字化放牧管理。沙香 SG03 智能项圈采用太阳能供电,支持语音召唤、智能寻找、卫星通信与音乐播放;SG03 mini 则走长续航 + 无线充电路线。</p>
|
||||||
|
</details>
|
||||||
|
<details class="faq-item reveal">
|
||||||
|
<summary data-i18n="faq.q2">电子耳标和智能项圈怎么选?</summary>
|
||||||
|
<p data-i18n="faq.a2">耳标解决“数量多、成本敏感”的普适追踪:ST01 智能蓝牙耳标支持集群组网、丢失报警与亮灯寻找;项圈解决“重点牲畜的深度管理”:定位、生理监测、语音召唤等能力更全面。大面积散养建议耳标 + 基站 BG01 打底,对种畜等高价值牲畜加配项圈。</p>
|
||||||
|
</details>
|
||||||
|
<details class="faq-item reveal">
|
||||||
|
<summary data-i18n="faq.q3">UWB 标签和蓝牙标签的区别是什么?</summary>
|
||||||
|
<p data-i18n="faq.a3">UWB 智能标签 SL01 达到厘米级定位,支持跌落报警、可配合安全帽使用,适合工地资产等精密定位场景;蓝牙智能标签 ST02 主打亮灯寻找与蜂鸣报警,超低功耗、成本低,适合日常资产防丢。需要“精确到工位/仓位”选 UWB,只需要“找得到”选蓝牙。</p>
|
||||||
|
</details>
|
||||||
|
<details class="faq-item reveal">
|
||||||
|
<summary data-i18n="faq.q4">智能水培种植架适合家庭还是学校?</summary>
|
||||||
|
<p data-i18n="faq.a4">两者都适合。HS01 智能水培种植架为独立柜设计、方便扩展,支持无人 AI 种植与手动控制两种模式:家庭用户选无人 AI 模式实现“在家种菜”,中小学劳动课与教学场景用手动模式让学生参与种植全过程。</p>
|
||||||
|
</details>
|
||||||
|
<details class="faq-item reveal">
|
||||||
|
<summary data-i18n="faq.q5">什么是数字孪生梁场系统?</summary>
|
||||||
|
<p data-i18n="faq.a5">数字孪生梁场系统是把桥梁预制梁场的生产、物料、征迁与桥梁管理过程映射为可计算数字模型的定制系统。沙香科技的智慧梁场系统提供 SaaS 平台 + 微信小程序 + 多传感器数据接入的完整落地。</p>
|
||||||
|
</details>
|
||||||
|
<details class="faq-item reveal">
|
||||||
|
<summary data-i18n="faq.q6">沙香科技的硬件配套什么软件平台?</summary>
|
||||||
|
<p data-i18n="faq.a6">每一类硬件都有配套的 SaaS 平台与 APP/微信小程序,硬件数据直达云端:智能放牧系统(多账户牧场管理、围栏报警、全生命周期溯源)、智能水培种植系统(自动种植调节、AI 智能助手)、智能设备资产管理系统(实时状态计算、预测性维护)。</p>
|
||||||
|
</details>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</section>
|
||||||
|
|
||||||
<!-- ===================== 联系 ===================== -->
|
<!-- ===================== 联系 ===================== -->
|
||||||
<section id="contact" class="section contact">
|
<section id="contact" class="section contact">
|
||||||
<div class="container contact-inner reveal">
|
<div class="container contact-inner reveal">
|
||||||
@@ -363,6 +402,61 @@
|
|||||||
</div>
|
</div>
|
||||||
</footer>
|
</footer>
|
||||||
|
|
||||||
|
<!-- 结构化数据(SEO 富摘要 + GEO 实体识别),中文为页面默认内容故用中文 -->
|
||||||
|
<script type="application/ld+json">
|
||||||
|
{
|
||||||
|
"@context": "https://schema.org",
|
||||||
|
"@type": "Organization",
|
||||||
|
"name": "苏州沙香科技有限公司",
|
||||||
|
"alternateName": ["Shashann", "Suzhou Shashann Technology Co., Ltd."],
|
||||||
|
"url": "https://www.shashann.com/",
|
||||||
|
"logo": "https://www.shashann.com/assets/img/logo-light.webp",
|
||||||
|
"email": "contact@shashann.com",
|
||||||
|
"description": "AIoT 科技公司,自研智能项圈、智能蓝牙耳标、智能水培种植架、UWB 定位标签等智能硬件及配套 SaaS 平台,服务数字畜牧、智慧种植、设备资产管理与定制软件系统开发。",
|
||||||
|
"address": {
|
||||||
|
"@type": "PostalAddress",
|
||||||
|
"addressLocality": "苏州市",
|
||||||
|
"addressRegion": "江苏省",
|
||||||
|
"addressCountry": "CN"
|
||||||
|
},
|
||||||
|
"contactPoint": {
|
||||||
|
"@type": "ContactPoint",
|
||||||
|
"contactType": "customer service",
|
||||||
|
"email": "contact@shashann.com",
|
||||||
|
"availableLanguage": ["zh-CN", "en"]
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<script type="application/ld+json">
|
||||||
|
{
|
||||||
|
"@context": "https://schema.org",
|
||||||
|
"@graph": [
|
||||||
|
{ "@type": "Product", "name": "智能项圈 SG03 mini", "brand": { "@type": "Brand", "name": "苏州沙香科技" }, "category": "数字畜牧", "image": "https://www.shashann.com/assets/img/collar-sg03-mini.webp", "description": "牛羊颈部物联网设备,长续航并支持无线充电,具备围栏报警、智能寻找与生理监测能力。" },
|
||||||
|
{ "@type": "Product", "name": "智能项圈 SG03", "brand": { "@type": "Brand", "name": "苏州沙香科技" }, "category": "数字畜牧", "image": "https://www.shashann.com/assets/img/collar-sg03.webp", "description": "太阳能供电的牛羊颈部物联网设备,支持语音召唤、智能寻找、生理监测、卫星通信、智能驱使与音乐播放。" },
|
||||||
|
{ "@type": "Product", "name": "智能蓝牙耳标 ST01", "brand": { "@type": "Brand", "name": "苏州沙香科技" }, "category": "数字畜牧", "image": "https://www.shashann.com/assets/img/ear-tag-st01.webp", "description": "牲畜耳部追踪设备,支持集群组网、丢失报警、亮灯寻找与生理监测。" },
|
||||||
|
{ "@type": "Product", "name": "智能蓝牙基站 BG01", "brand": { "@type": "Brand", "name": "苏州沙香科技" }, "category": "数字畜牧", "image": "https://www.shashann.com/assets/img/base-station-bg01.webp", "description": "牧场组网基站,超 1000 连接数、高精定位、集群报警,与耳标唯一绑定。" },
|
||||||
|
{ "@type": "Product", "name": "智能水培种植架 HS01", "brand": { "@type": "Brand", "name": "苏州沙香科技" }, "category": "智慧种植", "image": "https://www.shashann.com/assets/img/hydroponics-hs01.webp", "description": "独立柜设计的水培种植系统,多复合传感器、自动水循环、自动施肥,支持无人 AI 种植与手动控制模式。" },
|
||||||
|
{ "@type": "Product", "name": "智能终端 BB03", "brand": { "@type": "Brand", "name": "苏州沙香科技" }, "category": "设备资产管理", "image": "https://www.shashann.com/assets/img/terminal-bb03.webp", "description": "边缘计算智能终端,多复合传感器、高精定位、即粘即用、超低功耗,准确识别设备与资产状态。" },
|
||||||
|
{ "@type": "Product", "name": "UWB 智能标签 SL01", "brand": { "@type": "Brand", "name": "苏州沙香科技" }, "category": "设备资产管理", "image": "https://www.shashann.com/assets/img/uwb-tag-sl01.webp", "description": "厘米级定位标签,支持跌落报警,可配合安全帽使用,适合工地资产等精密定位场景。" },
|
||||||
|
{ "@type": "Product", "name": "蓝牙智能标签 ST02", "brand": { "@type": "Brand", "name": "苏州沙香科技" }, "category": "设备资产管理", "image": "https://www.shashann.com/assets/img/bt-tag-st02.webp", "description": "主打亮灯寻找与蜂鸣报警的低功耗蓝牙资产标签,安装方便,适合日常资产防丢。" }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
<script type="application/ld+json">
|
||||||
|
{
|
||||||
|
"@context": "https://schema.org",
|
||||||
|
"@type": "FAQPage",
|
||||||
|
"mainEntity": [
|
||||||
|
{ "@type": "Question", "name": "智能项圈是什么?", "acceptedAnswer": { "@type": "Answer", "text": "智能项圈是佩戴在牛羊等牲畜颈部的物联网设备,集成定位、生理监测与围栏报警能力,用于数字化放牧管理。沙香 SG03 智能项圈采用太阳能供电,支持语音召唤、智能寻找、卫星通信与音乐播放;SG03 mini 则走长续航 + 无线充电路线。" } },
|
||||||
|
{ "@type": "Question", "name": "电子耳标和智能项圈怎么选?", "acceptedAnswer": { "@type": "Answer", "text": "耳标解决“数量多、成本敏感”的普适追踪:ST01 智能蓝牙耳标支持集群组网、丢失报警与亮灯寻找;项圈解决“重点牲畜的深度管理”:定位、生理监测、语音召唤等能力更全面。大面积散养建议耳标 + 基站 BG01 打底,对种畜等高价值牲畜加配项圈。" } },
|
||||||
|
{ "@type": "Question", "name": "UWB 标签和蓝牙标签的区别是什么?", "acceptedAnswer": { "@type": "Answer", "text": "UWB 智能标签 SL01 达到厘米级定位,支持跌落报警、可配合安全帽使用,适合工地资产等精密定位场景;蓝牙智能标签 ST02 主打亮灯寻找与蜂鸣报警,超低功耗、成本低,适合日常资产防丢。需要“精确到工位/仓位”选 UWB,只需要“找得到”选蓝牙。" } },
|
||||||
|
{ "@type": "Question", "name": "智能水培种植架适合家庭还是学校?", "acceptedAnswer": { "@type": "Answer", "text": "两者都适合。HS01 智能水培种植架为独立柜设计、方便扩展,支持无人 AI 种植与手动控制两种模式:家庭用户选无人 AI 模式实现“在家种菜”,中小学劳动课与教学场景用手动模式让学生参与种植全过程。" } },
|
||||||
|
{ "@type": "Question", "name": "什么是数字孪生梁场系统?", "acceptedAnswer": { "@type": "Answer", "text": "数字孪生梁场系统是把桥梁预制梁场的生产、物料、征迁与桥梁管理过程映射为可计算数字模型的定制系统。沙香科技的智慧梁场系统提供 SaaS 平台 + 微信小程序 + 多传感器数据接入的完整落地。" } },
|
||||||
|
{ "@type": "Question", "name": "沙香科技的硬件配套什么软件平台?", "acceptedAnswer": { "@type": "Answer", "text": "每一类硬件都有配套的 SaaS 平台与 APP/微信小程序,硬件数据直达云端:智能放牧系统(多账户牧场管理、围栏报警、全生命周期溯源)、智能水培种植系统(自动种植调节、AI 智能助手)、智能设备资产管理系统(实时状态计算、预测性维护)。" } }
|
||||||
|
]
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
<script src="assets/js/main.js?v=202611021031"></script>
|
<script src="assets/js/main.js?v=202611021031"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
28
llms.txt
Normal file
28
llms.txt
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
# 苏州沙香科技有限公司(Suzhou Shashann Technology)
|
||||||
|
|
||||||
|
> AIoT 科技公司:自研智能硬件 + 配套 SaaS 平台,服务数字畜牧、智慧种植、设备资产管理与定制软件系统开发。官网:https://www.shashann.com/
|
||||||
|
|
||||||
|
## 公司
|
||||||
|
|
||||||
|
- 名称:苏州沙香科技有限公司 / Suzhou Shashann Technology Co., Ltd.
|
||||||
|
- 定位:用人工智能、边缘计算、云计算与低功耗物联网技术,为各行业数字化升级提供智能硬件产品与应用软件服务平台
|
||||||
|
- 荣誉:自研智能畜牧产品获"一带一路"战略项目十周年"中国名片产品";参与大型纪录片《科技之光》第六集拍摄
|
||||||
|
- 基地:南京 · 张家港 · 常州三地研发生产基地,部分产品远销海外
|
||||||
|
- 联系:contact@shashann.com(官网联系区提供微信二维码)
|
||||||
|
|
||||||
|
## 产品线
|
||||||
|
|
||||||
|
- 数字畜牧:智能项圈 SG03(太阳能供电/语音召唤/卫星通信/生理监测/音乐播放)、智能项圈 SG03 mini(长续航/无线充电)、智能蓝牙耳标 ST01(集群组网/丢失报警/亮灯寻找)、智能蓝牙基站 BG01(超1000连接数/高精定位/集群报警)
|
||||||
|
- 智慧种植:智能水培种植架 HS01(独立柜设计/多复合传感器/自动水循环/自动施肥/无人 AI 种植)
|
||||||
|
- 设备资产管理:智能终端 BB03(边缘计算状态识别/即粘即用/超低功耗)、UWB 智能标签 SL01(厘米级定位/跌落报警/可配安全帽)、蓝牙智能标签 ST02(亮灯寻找/蜂鸣报警)
|
||||||
|
- 软件平台:每类硬件配套 SaaS 平台 + APP/微信小程序——智能放牧系统、智能水培种植系统、智能设备资产管理系统
|
||||||
|
- 定制开发:智慧梁场系统(含数字孪生)、智能仿真计算平台(力学/热流体/AI 加速)、多智能体工作流定制
|
||||||
|
|
||||||
|
## 常见问题
|
||||||
|
|
||||||
|
- 智能项圈是佩戴在牛羊颈部的物联网设备,集成定位、生理监测与围栏报警;沙香 SG03 太阳能供电,SG03 mini 长续航+无线充电
|
||||||
|
- 耳标适合数量多、成本敏感的普适追踪;项圈适合种畜等高价值牲畜的深度管理
|
||||||
|
- UWB 标签(SL01)厘米级定位适合精密定位场景;蓝牙标签(ST02)主打低成本亮灯寻找与蜂鸣报警
|
||||||
|
- 水培种植架 HS01 家庭用无人 AI 模式、学校劳动课用手动模式,均支持
|
||||||
|
- 数字孪生梁场系统把预制梁场生产/物料/征迁/桥梁管理映射为可计算数字模型
|
||||||
|
- 所有硬件配套 SaaS 平台与 APP/微信小程序,数据直达云端
|
||||||
20
robots.txt
Normal file
20
robots.txt
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
User-agent: *
|
||||||
|
Allow: /
|
||||||
|
|
||||||
|
# 显式欢迎生成式引擎爬虫(GEO)——多数站点在屏蔽,我们反向操作
|
||||||
|
User-agent: GPTBot
|
||||||
|
Allow: /
|
||||||
|
User-agent: OAI-SearchBot
|
||||||
|
Allow: /
|
||||||
|
User-agent: ChatGPT-User
|
||||||
|
Allow: /
|
||||||
|
User-agent: ClaudeBot
|
||||||
|
Allow: /
|
||||||
|
User-agent: PerplexityBot
|
||||||
|
Allow: /
|
||||||
|
User-agent: Google-Extended
|
||||||
|
Allow: /
|
||||||
|
User-agent: Bytespider
|
||||||
|
Allow: /
|
||||||
|
|
||||||
|
Sitemap: https://www.shashann.com/sitemap.xml
|
||||||
8
sitemap.xml
Normal file
8
sitemap.xml
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<!-- 单页站点:仅首页一条(锚点片段对爬虫无效,多页化后在此膨胀) -->
|
||||||
|
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||||
|
<url>
|
||||||
|
<loc>https://www.shashann.com/</loc>
|
||||||
|
<lastmod>2026-11-09</lastmod>
|
||||||
|
</url>
|
||||||
|
</urlset>
|
||||||
29
tools/finish-feature.sh
Executable file
29
tools/finish-feature.sh
Executable file
@@ -0,0 +1,29 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# 在 feature 分支上执行:合并到 main、推送、删除本地和远端分支
|
||||||
|
# 用法:bash tools/finish-feature.sh
|
||||||
|
set -euo pipefail
|
||||||
|
|
||||||
|
BRANCH=$(git branch --show-current)
|
||||||
|
if [[ ! "$BRANCH" =~ ^feature/ ]]; then
|
||||||
|
echo "❌ 当前分支不是 feature/*:${BRANCH}"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
if ! git diff --quiet || ! git diff --cached --quiet; then
|
||||||
|
echo "❌ 工作区有未提交改动,先提交或暂存"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "== 合并 ${BRANCH} → main"
|
||||||
|
git checkout main
|
||||||
|
git pull --ff-only origin main
|
||||||
|
git merge --no-ff "$BRANCH" -m "Merge branch '${BRANCH}'"
|
||||||
|
git push origin main
|
||||||
|
|
||||||
|
echo "== 清理分支 ${BRANCH}"
|
||||||
|
git branch -d "$BRANCH"
|
||||||
|
if git ls-remote --exit-code --heads origin "$BRANCH" >/dev/null 2>&1; then
|
||||||
|
git push origin --delete "$BRANCH"
|
||||||
|
fi
|
||||||
|
|
||||||
|
echo "✅ 已合并并清理 ${BRANCH}"
|
||||||
Reference in New Issue
Block a user