商品
更新時間:2025-09-05 09:41:51
本模組主要用於商品展示、管理和互動功能,支援商品列表取得、詳情檢視、推播管理、講解功能等,適用於直播帶貨場景。
一、Api 方法概覽
| Api 方法 | 說明 |
|---|---|
| getProductTagList | 取得商品標籤列表 |
| getProductList | 取得商品列表 |
| getLaunchProductList | 取得商品列表(發起端) |
| getProductData | 取得商品資料 |
| sendProductClickEvent | 發送商品點擊事件 |
| closeProductPush | 關閉目前正在推播中的商品 |
| getProductExplainEnabled | 取得商品講解開關 |
| generateProductExplainPageUrl | 產生商品講解頁面位址 |
| getOutLinkProductRedirectEnabled | 取得目前頻道是否開啟點擊「外鏈購買」商品的封面/標題區域直接跳轉外鏈 |
| getProductPayOrderEnabled | 取得商品支付訂單是否開啟 |
| getProductHotSaleConfig | 取得商品熱賣配置 |
| getCurrentPushingProduct | 取得目前推播中的商品資料 |
| startExplain | 開始商品講解 |
| restartExplain | 重新開始商品講解 |
| endExplain | 結束商品講解 |
| deleteExplain | 刪除商品講解 |
| getCurrentProductExplain | 取得目前正在講解的商品 id |
| openProductPrice | 商品開價 |
| hideProductPrice | 商品隱藏價格 |
| getProductSetting | 取得商品設定 |
| pushProduct | 推播商品 |
| cancelPushProduct | 取消推播商品 |
| batchDeleteProduct | 批次刪除商品 |
| batchOnShelfProduct | 批次上架商品 |
| batchOffShelfProduct | 批次下架商品 |
| getSupportToDirectBuy | 判斷目前使用者是否支援直接購買商品 |
二、Event 事件概覽
| Event 事件 | 說明 |
|---|---|
| ProductEvents.OnSaleProduct | 上架商品 |
| ProductEvents.OffSaleProduct | 下架商品 |
| ProductEvents.AddProduct | 新增商品 |
| ProductEvents.DeleteProduct | 刪除商品 |
| ProductEvents.ChangeProduct | 修改商品 |
| ProductEvents.MoveProduct | 上移或下移商品 |
| ProductEvents.ChangeProductRank | 修改商品排序 |
| ProductEvents.ProductSoldOut | 商品售罄 |
| ProductEvents.PushProduct | 推播商品 |
| ProductEvents.CancelPushProduct | 取消推播商品 |
| ProductEvents.ProductListEnabled | 商品庫列表開關 |
| ProductEvents.RefreshProductList | 重新整理目前商品列表 |
| ProductEvents.ProductClick | 商品點擊事件 |
| ProductEvents.ProductClickTimes | 商品點擊次數統計事件 |
