Skip to content

Commit aa35c74

Browse files
committed
调整接口位置
1 parent a210b85 commit aa35c74

File tree

1 file changed

+14
-10
lines changed

1 file changed

+14
-10
lines changed

weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpService.java

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,20 @@ public interface WxMpService {
113113
*/
114114
WxMpMassSendResult massOpenIdsMessageSend(WxMpMassOpenIdsMessage message) throws WxErrorException;
115115

116+
/**
117+
* <pre>
118+
* 群发消息预览接口
119+
* 开发者可通过该接口发送消息给指定用户,在手机端查看消息的样式和排版。为了满足第三方平台开发者的需求,在保留对openID预览能力的同时,增加了对指定微信号发送预览的能力,但该能力每日调用次数有限制(100次),请勿滥用。
120+
* 接口调用请求说明
121+
* http请求方式: POST
122+
* https://api.weixin.qq.com/cgi-bin/message/mass/preview?access_token=ACCESS_TOKEN
123+
* 详情请见:http://mp.weixin.qq.com/wiki?t=resource/res_main&id=mp1421140549&token=&lang=zh_CN
124+
* </pre>
125+
*
126+
* @return wxMpMassSendResult
127+
*/
128+
WxMpMassSendResult massMessagePreview(WxMpMassPreviewMessage wxMpMassPreviewMessage) throws Exception;
129+
116130
/**
117131
* <pre>
118132
* 长链接转短链接接口
@@ -235,16 +249,6 @@ public interface WxMpService {
235249
*/
236250
void setMaxRetryTimes(int maxRetryTimes);
237251

238-
/**
239-
* <pre>
240-
* 预览接口
241-
* 详情请见:http://mp.weixin.qq.com/wiki/15/40b6865b893947b764e2de8e4a1fb55f.html#.E9.A2.84.E8.A7.88.E6.8E.A5.E5.8F.A3.E3.80.90.E8.AE.A2.E9.98.85.E5.8F.B7.E4.B8.8E.E6.9C.8D.E5.8A.A1.E5.8F.B7.E8.AE.A4.E8.AF.81.E5.90.8E.E5.9D.87.E5.8F.AF.E7.94.A8.E3.80.91
242-
* </pre>
243-
*
244-
* @return wxMpMassSendResult
245-
*/
246-
WxMpMassSendResult massMessagePreview(WxMpMassPreviewMessage wxMpMassPreviewMessage) throws Exception;
247-
248252
/**
249253
* 获取WxMpConfigStorage 对象
250254
*

0 commit comments

Comments
 (0)