Wisely简普系统项目

Wisely简普系统项目


商品更新库存/名称/价格

<h1>线下商品同步线上</h1> <h2>请求URL</h2> <p>POST localhost/addons/yun_shop/api.php?route=plugin.wisely-system.open.goods.push&amp;i=1</p> <h2>请求参数</h2> <table> <thead> <tr> <th>参数名</th> <th>类型</th> <th>是否必需</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>body.mobile</td> <td>string</td> <td>是</td> <td>当前时间戳(秒级10位) *参加签名</td> </tr> <tr> <td>body.timestamp</td> <td>string</td> <td>是</td> <td>当前时间戳(秒级10位) *参加签名</td> </tr> <tr> <td>body.notstr</td> <td>string</td> <td>是</td> <td>a-z A-Z 1-9, 随机12位字符串 *参加签名</td> </tr> <tr> <td>goods</td> <td>object</td> <td>是</td> <td>商品</td> </tr> <tr> <td>goods.title</td> <td>string</td> <td>否</td> <td>商品名称 (柬文)</td> </tr> <tr> <td>goods.alias</td> <td>string</td> <td>否</td> <td>商品简称 (中文)</td> </tr> <tr> <td>goods.price</td> <td>string</td> <td>否</td> <td>现价</td> </tr> <tr> <td>goods.market_price</td> <td>string</td> <td>否</td> <td>原价</td> </tr> <tr> <td>goods.cost_price</td> <td>string</td> <td>否</td> <td>成本价</td> </tr> <tr> <td>goods.goods_sn</td> <td>string</td> <td>是</td> <td>商品编码 注:ERP对应货号</td> </tr> <tr> <td>goods.product_sn</td> <td>string</td> <td>是</td> <td>商品条码 注:ERP对应条码</td> </tr> <tr> <td>goods.stock</td> <td>string</td> <td>否</td> <td>库存</td> </tr> </tbody> </table> <h3>请求示例</h3> <pre><code>localhost/addons/yun_shop/api.php?route=plugin.wisely-system.open.goods.push&amp;amp;i=1 { &amp;quot;body&amp;quot;: { &amp;quot;notstr&amp;quot;: &amp;quot;JSND12323&amp;quot;, &amp;quot;timestamp&amp;quot;: &amp;quot;1715047167&amp;quot; }, &amp;quot;goods&amp;quot;: { &amp;quot;goods_sn&amp;quot;: &amp;quot;0205010016&amp;quot;, &amp;quot;product_sn&amp;quot;: &amp;quot;6972512180096&amp;quot;, &amp;quot;stock&amp;quot;: 200, &amp;quot;price&amp;quot;: &amp;quot;20.00&amp;quot;, &amp;quot;market_price&amp;quot;: &amp;quot;50.00&amp;quot;, &amp;quot;cost_price&amp;quot;: &amp;quot;10.00&amp;quot;, &amp;quot;title&amp;quot;: &amp;quot;商品柬文&amp;quot;, &amp;quot;alias&amp;quot;: &amp;quot;商品中文&amp;quot; }, &amp;quot;sign&amp;quot;: &amp;quot;9ffa182f171901664b69aaf62d19ff7b&amp;quot; }</code></pre> <h2>响应参数</h2> <table> <thead> <tr> <th>参数名</th> <th>类型</th> <th>描述</th> </tr> </thead> <tbody> <tr> <td>result</td> <td>int</td> <td>结果. 0 = 失败, 1成功</td> </tr> <tr> <td>msg</td> <td>string</td> <td>信息。</td> </tr> <tr> <td>data</td> <td>object</td> <td>-</td> </tr> </tbody> </table> <h3>响应成功</h3> <pre><code class="language-json">{ &amp;quot;result&amp;quot;: 1, &amp;quot;msg&amp;quot;: &amp;quot;操作成功&amp;quot;, &amp;quot;data&amp;quot;: [] }</code></pre> <h3>响应失败</h3> <pre><code class="language-json">{ &amp;quot;result&amp;quot;: 0, &amp;quot;msg&amp;quot;: &amp;quot;参数错误, 请重试&amp;quot;, &amp;quot;data&amp;quot;: [] }</code></pre>

页面列表

ITEM_HTML