余额同步
<h1>会员余额同步</h1>
<p>注: 使用该接口. 无论商城有多少积分. 会强制同步该接口的余额数值</p>
<h2>请求URL</h2>
<p>POST 域名/addons/yun_shop/api.php?route=plugin.member-common-sync.open.balance.force&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.balance</td>
<td>string</td>
<td>是</td>
<td>余额</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.point.force&amp;i=1
{
&quot;body&quot;: {
&quot;mobile&quot;: &quot;17620803841&quot;,
&quot;balance&quot;: &quot;10.00&quot;,
&quot;timestamp&quot;: &quot;1713890387&quot;,
&quot;notstr&quot;: &quot;kutciyozow64&quot;
},
&quot;sign&quot;: &quot;4f2a8ef74acfae320080f6bb05f4de0e&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">{
&quot;result&quot;: 1,
&quot;msg&quot;: &quot;同步成功&quot;,
&quot;data&quot;: []
}</code></pre>
<h3>响应失败</h3>
<pre><code class="language-json">{
&quot;result&quot;: 0,
&quot;msg&quot;: &quot;同步失败&quot;,
&quot;data&quot;: []
}</code></pre>