DYH云

DYH开放接口


商品上下架socket

<h5>简要描述</h5> <ul> <li>商品上下架socket</li> </ul> <h5>请求URL</h5> <ul> <li>编辑<code>/api/contest/goods/edit/:id</code> POST 传contestId 和 state</li> </ul> <pre><code>**socket** { "type" : "contest/updateGoodsState", "data" : [ ["contestGoodsId"] =&gt; string(3) "103" ["name"] =&gt; string(36) "富安娜牌的新品床上四件套" ["livePlatform"] =&gt; string(1) "1" ["anchorType"] =&gt; string(1) "1" ["price"] =&gt; string(7) "3000.00" ["score"] =&gt; string(1) "1" ["image"] =&gt; string(92) "https://vvod.obs.cn-north-4.myhuaweicloud.com/202112/06/f6b66fcbe6c90c45ca142c5995038f51.jpg" ["detail"] =&gt; string(10) "&lt;p&gt;111&lt;/p&gt;" ["step"] =&gt; string(18) "goodsAnchorSelectC" ["repurchase"] =&gt; string(4) "0.00", ["state"] =&gt; string(4) "1", #0下架1上架 ] }</code></pre> <h5>备注</h5>

页面列表

ITEM_HTML