微信通用服务接口-进销存
<p>[TOC]</p>
<h5>简要描述</h5>
<ul>
<li>微信通用服务接口</li>
</ul>
<h5>接口名称</h5>
<ul>
<li><code>https://guide-api-test.feihe.com/wisdom-api/weixin/v1/stock/{method}</code></li>
</ul>
<h5>远程调用Feign</h5>
<ul>
<li>模块名 wisdom-api</li>
</ul>
<h5>请求方式</h5>
<ul>
<li>POST </li>
<li>格式
<pre><code class="language-json">{
&quot;touser&quot;:&quot;openid&quot;,
&quot;template_id&quot;:&quot;消息模版&quot;,
&quot;miniprogram&quot;:{
&quot;appid&quot;:&quot;小程序id&quot;,
&quot;pagepath&quot;:&quot;小程序页面地址&quot;
},
&quot;data&quot;:{
&quot;first&quot;:{
&quot;value&quot;:&quot;恭喜你购买成功!&quot;,
&quot;color&quot;:&quot;#173177&quot;
},
&quot;keyword1&quot;:{
&quot;value&quot;:&quot;巧克力&quot;,
&quot;color&quot;:&quot;#173177&quot;
},
&quot;keyword2&quot;:{
&quot;value&quot;:&quot;39.8元&quot;,
&quot;color&quot;:&quot;#173177&quot;
},
&quot;keyword3&quot;:{
&quot;value&quot;:&quot;2022年11月22日&quot;,
&quot;color&quot;:&quot;#173177&quot;
},
&quot;remark&quot;:{
&quot;value&quot;:&quot;欢迎再次购买!&quot;,
&quot;color&quot;:&quot;#173177&quot;
}
}
}</code></pre>
<h5>参数</h5></li>
</ul>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">必选</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">method</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>微信服务方法 “/”转换为 “ .” 如 cgi-bin/message/template/send 转换为 cgi-bin.message.template.send</td>
</tr>
<tr>
<td style="text-align: left;">body</td>
<td style="text-align: left;">是</td>
<td style="text-align: left;">string</td>
<td>消息体,格式按照微信文档组装放入此参数内</td>
</tr>
</tbody>
</table>
<h5>返回示例</h5>
<pre><code>{&quot;errcode&quot;:0,&quot;errmsg&quot;:&quot;ok&quot;,&quot;msgid&quot;:2516791975648722945}</code></pre>
<h5>返回参数说明</h5>
<table>
<thead>
<tr>
<th style="text-align: left;">参数名</th>
<th style="text-align: left;">类型</th>
<th>说明</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">errcode</td>
<td style="text-align: left;">int</td>
<td>微信错误码</td>
</tr>
<tr>
<td style="text-align: left;">errmsg</td>
<td style="text-align: left;">string</td>
<td>微信错误信息</td>
</tr>
<tr>
<td style="text-align: left;">msgid</td>
<td style="text-align: left;">int</td>
<td>消息id</td>
</tr>
</tbody>
</table>
<p>更多返回参考 [微信公众号开发文档](<a href="https://developers.weixin.qq.com/doc/offiaccount/Getting_Started/Overview.html">https://developers.weixin.qq.com/doc/offiaccount/Getting_Started/Overview.html</a> "微信公众号开发文档")</p>
<h5>备注</h5>
<h6>1.微信发送模版消息官方文档</h6>
<ul>
<li>
<p>官方文档 [微信发送客服消息](http:<a href="https://developers.weixin.qq.com/doc/offiaccount/Message_Management/Service_Center_messages.html">https://developers.weixin.qq.com/doc/offiaccount/Message_Management/Service_Center_messages.html</a> "微信发送客服消息")</p>
</li>
<li>更多返回错误代码请看微信的错误代码描述</li>
</ul>