Skip to content

Commit 48f032c

Browse files
committed
修正部分代码
1 parent 21dcf17 commit 48f032c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpKefuServiceImpl.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
*
2222
*/
2323
public class WxMpKefuServiceImpl implements WxMpKefuService {
24-
public static final String API_URL_PREFIX = "https://api.weixin.qq.com/customservice";
24+
private static final String API_URL_PREFIX = "https://api.weixin.qq.com/customservice";
2525
private WxMpService wxMpService;
2626

2727
public WxMpKefuServiceImpl(WxMpService wxMpService) {
@@ -158,9 +158,9 @@ public WxMpKfMsgList kfMsgList(Date startTime, Date endTime, Long msgId, Integer
158158
public WxMpKfMsgList kfMsgList(Date startTime, Date endTime) throws WxErrorException {
159159
int number = 10000;
160160
WxMpKfMsgList result = this.kfMsgList(startTime,endTime, 1L, number);
161-
Long msgId = result.getMsgId();
162-
163-
if(result != null && result.getNumber() >= number){
161+
162+
if(result != null && result.getNumber() == number){
163+
Long msgId = result.getMsgId();
164164
WxMpKfMsgList followingResult = this.kfMsgList(startTime,endTime, msgId, number);
165165
while(followingResult != null && followingResult.getRecords().size() > 0){
166166
result.getRecords().addAll(followingResult.getRecords());

0 commit comments

Comments
 (0)