黃金電商自動計價系統

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

{{ settings.auto_update ? '自動更新中' : '已暫停' }} 最近同步:{{ formatTime(lastSyncAt) }}

即時金價(台銀牌告)

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

後台設定

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

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

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

BV ID 商品 會員等級數 重量 (g) 工錢 (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 }}