新增会员
<h1>新增会员</h1>
<h2>请求URL</h2>
<p>POST localhost/addons/yun_shop/api.php?route=plugin.member-common-sync.open.member.generate&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.wisely_card</td>
<td>string</td>
<td>否</td>
<td>会员卡号</td>
</tr>
<tr>
<td>body.gender</td>
<td>int</td>
<td>否</td>
<td>性别 1=男 2=女</td>
</tr>
<tr>
<td>body.realname</td>
<td>string</td>
<td>否</td>
<td>姓名</td>
</tr>
<tr>
<td>body.password</td>
<td>string</td>
<td>否</td>
<td>明文密码 不传默认123456</td>
</tr>
<tr>
<td>body.point</td>
<td>string</td>
<td>否</td>
<td>积分</td>
</tr>
<tr>
<td>body.income</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.member.generate&amp;i=1
{
&quot;body&quot;: {
&quot;mobile&quot;: &quot;17620803841&quot;,
&quot;realname&quot;: &quot;吴亮&quot;,
&quot;password&quot;: &quot;SFZFdnVjUHhUWEpZdkNSbGRwMWY5QT09Ojozt9GPgx7VWs7rhqykIKVQ&quot;, //原密码:123456
&quot;point&quot;: &quot;0.00&quot;, // 积分
&quot;income&quot;: &quot;0.00&quot;, // 余额
&quot;notstr&quot;: &quot;kutciyozow64&quot;,
&quot;timestamp&quot;: 1713890387
},
&quot;sign&quot;: &quot;d3123c84338b23bf7d68e39df1d7785c&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>
<tr>
<td>data.uid</td>
<td>int</td>
<td>会员商城唯一ID</td>
</tr>
<tr>
<td>data.mobile</td>
<td>string</td>
<td>手机号</td>
</tr>
<tr>
<td>data.realname</td>
<td>string</td>
<td>姓名</td>
</tr>
<tr>
<td>data.point</td>
<td>string</td>
<td>积分</td>
</tr>
<tr>
<td>data.income</td>
<td>string</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;: {
&quot;uid&quot;: &quot;1&quot;,
&quot;mobile&quot;: &quot;17620803841&quot;,
&quot;realname&quot;: &quot;吴亮&quot;,
&quot;point&quot;: &quot;0.00&quot;,
&quot;income&quot;: &quot;0.00&quot;,
}
}</code></pre>
<h3>响应失败</h3>
<pre><code class="language-json">{
&quot;result&quot;: 0,
&quot;msg&quot;: &quot;签名失败&quot;,
&quot;data&quot;: []
}</code></pre>