mirror of
				https://gitee.com/binary/weixin-java-tools.git
				synced 2025-10-31 02:28:25 +08:00 
			
		
		
		
	修复微信的接口格式混乱导致重构代码有问题的问题
This commit is contained in:
		| @ -4,6 +4,7 @@ import java.io.File; | |||||||
| import java.util.Date; | import java.util.Date; | ||||||
|  |  | ||||||
| import com.google.gson.JsonObject; | import com.google.gson.JsonObject; | ||||||
|  |  | ||||||
| import me.chanjar.weixin.common.bean.result.WxError; | import me.chanjar.weixin.common.bean.result.WxError; | ||||||
| import me.chanjar.weixin.common.exception.WxErrorException; | import me.chanjar.weixin.common.exception.WxErrorException; | ||||||
| import me.chanjar.weixin.common.util.http.MediaUploadRequestExecutor; | import me.chanjar.weixin.common.util.http.MediaUploadRequestExecutor; | ||||||
| @ -13,7 +14,12 @@ import me.chanjar.weixin.mp.api.WxMpKefuService; | |||||||
| import me.chanjar.weixin.mp.api.WxMpService; | import me.chanjar.weixin.mp.api.WxMpService; | ||||||
| import me.chanjar.weixin.mp.bean.kefu.request.WxMpKfAccountRequest; | import me.chanjar.weixin.mp.bean.kefu.request.WxMpKfAccountRequest; | ||||||
| import me.chanjar.weixin.mp.bean.kefu.request.WxMpKfSessionRequest; | import me.chanjar.weixin.mp.bean.kefu.request.WxMpKfSessionRequest; | ||||||
| import me.chanjar.weixin.mp.bean.kefu.result.*; | import me.chanjar.weixin.mp.bean.kefu.result.WxMpKfList; | ||||||
|  | import me.chanjar.weixin.mp.bean.kefu.result.WxMpKfMsgList; | ||||||
|  | import me.chanjar.weixin.mp.bean.kefu.result.WxMpKfOnlineList; | ||||||
|  | import me.chanjar.weixin.mp.bean.kefu.result.WxMpKfSessionGetResult; | ||||||
|  | import me.chanjar.weixin.mp.bean.kefu.result.WxMpKfSessionList; | ||||||
|  | import me.chanjar.weixin.mp.bean.kefu.result.WxMpKfSessionWaitCaseList; | ||||||
|  |  | ||||||
| /** | /** | ||||||
|  *  |  *  | ||||||
| @ -30,7 +36,7 @@ public class WxMpKefuServiceImpl implements WxMpKefuService { | |||||||
|  |  | ||||||
|   @Override |   @Override | ||||||
|   public WxMpKfList kfList() throws WxErrorException { |   public WxMpKfList kfList() throws WxErrorException { | ||||||
|     String url = API_URL_PREFIX + "/getkflist"; |     String url = "https://api.weixin.qq.com/cgi-bin/customservice/getkflist"; | ||||||
|     String responseContent = this.wxMpService |     String responseContent = this.wxMpService | ||||||
|         .execute(new SimpleGetRequestExecutor(), url, null); |         .execute(new SimpleGetRequestExecutor(), url, null); | ||||||
|     return WxMpKfList.fromJson(responseContent); |     return WxMpKfList.fromJson(responseContent); | ||||||
| @ -38,7 +44,7 @@ public class WxMpKefuServiceImpl implements WxMpKefuService { | |||||||
|  |  | ||||||
|   @Override |   @Override | ||||||
|   public WxMpKfOnlineList kfOnlineList() throws WxErrorException { |   public WxMpKfOnlineList kfOnlineList() throws WxErrorException { | ||||||
|     String url = API_URL_PREFIX + "/getonlinekflist"; |     String url = "https://api.weixin.qq.com/cgi-bin/customservice/getonlinekflist"; | ||||||
|     String responseContent = this.wxMpService |     String responseContent = this.wxMpService | ||||||
|         .execute(new SimpleGetRequestExecutor(), url, null); |         .execute(new SimpleGetRequestExecutor(), url, null); | ||||||
|     return WxMpKfOnlineList.fromJson(responseContent); |     return WxMpKfOnlineList.fromJson(responseContent); | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 BinaryWang
					BinaryWang