Wisely简普系统项目

Wisely简普系统项目


抵扣/新增积分

<h1>会员积分新增/抵扣</h1> <h2>请求URL</h2> <p>POST 域名/addons/yun_shop/api.php?route=plugin.member-common-sync.open.point.index&amp;i=1</p> <h2>请求参数</h2> <table> <thead> <tr> <th>参数名</th> <th>类型</th> <th>是否必需</th> <th>描述</th> </tr> </thead> <tbody> <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>body.mobile</td> <td>string</td> <td>是</td> <td>会员手机号</td> </tr> <tr> <td>body.type</td> <td>string</td> <td>是</td> <td>更变类型: deduction = 抵扣, addiction = 新增</td> </tr> <tr> <td>body.point</td> <td>string</td> <td>是</td> <td>积分</td> </tr> <tr> <td>body.serial_no</td> <td>string</td> <td>是</td> <td>16位以内唯一流水号</td> </tr> <tr> <td>sign</td> <td>string</td> <td>是</td> <td>签名</td> </tr> </tbody> </table> <h3>请求示例</h3> <pre><code>localhost/addons/yun_shop/api.php?route=plugin.member-common-sync.open.member.index&amp;amp;i=1 { &amp;quot;body&amp;quot;: { &amp;quot;mobile&amp;quot;: &amp;quot;17620803841&amp;quot;, &amp;quot;type&amp;quot;: &amp;quot;deduction&amp;quot;, &amp;quot;point&amp;quot;: &amp;quot;300.00&amp;quot;, &amp;quot;timestamp&amp;quot;: &amp;quot;1713890387&amp;quot;, &amp;quot;notstr&amp;quot;: &amp;quot;kutciyozow64&amp;quot;, &amp;quot;serial_no&amp;quot;: &amp;quot;PNZC123445&amp;quot; }, &amp;quot;sign&amp;quot;: &amp;quot;6547aff0da421d2fe9aafa4b65c5ed18&amp;quot; } 示例字段page不参与加密.</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