黃金電商自動計價系統

Auto-Pricing Engine · BV Shop API V2 · 你的後台

{{ settings.auto_update ? '自動更新中' : '已暫停' }} 最近同步:{{ formatTime(lastSyncAt) }}
⚠️ 系統因異常已自動暫停

{{ settings.halt_reason || '請查看通知 email 了解詳情' }}

即時金價(台銀牌告)

Au 黃金
NT$ {{ formatNumber(goldPrice.au_mid * 3.75) }} / 錢
尚無資料
買進 {{ formatNumber(goldPrice.au_buy * 3.75) }} / 賣出 {{ formatNumber(goldPrice.au_sell * 3.75) }} (台銀牌告 g 換算 1 錢 = 3.75 g)
最後更新:{{ formatTime(goldPrice.fetched_at) }}
差異 < 0.1% 自動跳過 | 每 5 分鐘 Cron 觸發

後台設定

P1 嚴重 / P2 警告 → 店家 + 系統管理員
P3 日報(每天 09:00)→ 只寄店家

售價 = 金價(TWD/錢) × 重量(錢) × (1 + 溢價率) + 工錢

以 1 錢 工錢 0 為例:NT$ {{ formatNumber(Math.round(goldPrice.au_mid * 3.75 * (1 + settings.gold_premium_pct/100))) }}

商品設定(共 {{ products.length }} 筆)

BV ID 商品 會員等級數 重量 (錢) 工錢 (NT$) 啟用 當前計算價 上次推送
{{ p.id }} {{ p.title }} {{ parseLevels(p.cus_level_ids).length }} {{ p.weight_g > 0 && goldPrice ? 'NT$ ' + formatNumber(calc(p)) : '—' }}
尚未同步商品 — 點上方「從 BV Shop 同步商品」

BV Shop 推送

將推送 {{ enabledCount }} 個啟用商品 × 各等級會員 = PUT /product-prices/{id}

成功 {{ lastPushSummary.pushed }} 跳過 {{ lastPushSummary.skipped }} 失敗 {{ lastPushSummary.failed }}
尚無推送紀錄
{{ formatTime(log.created_at) }} PUT /product-prices/{{ log.product_id }} price={{ formatNumber(log.price) }} {{ log.status === 'ok' ? (log.http_code || 200) + ' OK' : log.status }} {{ log.error_message }}