mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-08-24 07:23:01 +08:00
修正部分代码
This commit is contained in:
parent
21dcf17a36
commit
48f032ca61
@ -21,7 +21,7 @@ import me.chanjar.weixin.mp.bean.kefu.result.*;
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class WxMpKefuServiceImpl implements WxMpKefuService {
|
public class WxMpKefuServiceImpl implements WxMpKefuService {
|
||||||
public static final String API_URL_PREFIX = "https://api.weixin.qq.com/customservice";
|
private static final String API_URL_PREFIX = "https://api.weixin.qq.com/customservice";
|
||||||
private WxMpService wxMpService;
|
private WxMpService wxMpService;
|
||||||
|
|
||||||
public WxMpKefuServiceImpl(WxMpService wxMpService) {
|
public WxMpKefuServiceImpl(WxMpService wxMpService) {
|
||||||
@ -158,9 +158,9 @@ public class WxMpKefuServiceImpl implements WxMpKefuService {
|
|||||||
public WxMpKfMsgList kfMsgList(Date startTime, Date endTime) throws WxErrorException {
|
public WxMpKfMsgList kfMsgList(Date startTime, Date endTime) throws WxErrorException {
|
||||||
int number = 10000;
|
int number = 10000;
|
||||||
WxMpKfMsgList result = this.kfMsgList(startTime,endTime, 1L, number);
|
WxMpKfMsgList result = this.kfMsgList(startTime,endTime, 1L, number);
|
||||||
Long msgId = result.getMsgId();
|
|
||||||
|
if(result != null && result.getNumber() == number){
|
||||||
if(result != null && result.getNumber() >= number){
|
Long msgId = result.getMsgId();
|
||||||
WxMpKfMsgList followingResult = this.kfMsgList(startTime,endTime, msgId, number);
|
WxMpKfMsgList followingResult = this.kfMsgList(startTime,endTime, msgId, number);
|
||||||
while(followingResult != null && followingResult.getRecords().size() > 0){
|
while(followingResult != null && followingResult.getRecords().size() > 0){
|
||||||
result.getRecords().addAll(followingResult.getRecords());
|
result.getRecords().addAll(followingResult.getRecords());
|
||||||
|
Loading…
Reference in New Issue
Block a user