mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2026-03-10 00:13:40 +08:00
按照最新微信官方文档对客服会话控制接口进行修正
This commit is contained in:
@@ -94,7 +94,7 @@ public interface WxMpKefuService {
|
||||
* 接口url格式: https://api.weixin.qq.com/customservice/kfsession/create?access_token=ACCESS_TOKEN
|
||||
* </pre>
|
||||
*/
|
||||
boolean kfSessionCreate(String openid, String kfAccount, String text) throws WxErrorException;
|
||||
boolean kfSessionCreate(String openid, String kfAccount) throws WxErrorException;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
@@ -104,7 +104,7 @@ public interface WxMpKefuService {
|
||||
* 接口url格式: https://api.weixin.qq.com/customservice/kfsession/close?access_token=ACCESS_TOKEN
|
||||
* </pre>
|
||||
*/
|
||||
boolean kfSessionClose(String openid, String kfAccount, String text) throws WxErrorException;
|
||||
boolean kfSessionClose(String openid, String kfAccount) throws WxErrorException;
|
||||
|
||||
/**
|
||||
* <pre>
|
||||
|
||||
@@ -88,10 +88,9 @@ public class WxMpKefuServiceImpl implements WxMpKefuService {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean kfSessionCreate(String openid, String kfAccount, String text)
|
||||
public boolean kfSessionCreate(String openid, String kfAccount)
|
||||
throws WxErrorException {
|
||||
WxMpKfSessionRequest request = new WxMpKfSessionRequest(kfAccount, openid,
|
||||
text);
|
||||
WxMpKfSessionRequest request = new WxMpKfSessionRequest(kfAccount, openid);
|
||||
String url = "https://api.weixin.qq.com/customservice/kfsession/create";
|
||||
this.wxMpService.execute(new SimplePostRequestExecutor(), url,
|
||||
request.toJson());
|
||||
@@ -99,10 +98,9 @@ public class WxMpKefuServiceImpl implements WxMpKefuService {
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean kfSessionClose(String openid, String kfAccount, String text)
|
||||
public boolean kfSessionClose(String openid, String kfAccount)
|
||||
throws WxErrorException {
|
||||
WxMpKfSessionRequest request = new WxMpKfSessionRequest(kfAccount, openid,
|
||||
text);
|
||||
WxMpKfSessionRequest request = new WxMpKfSessionRequest(kfAccount, openid);
|
||||
String url = "https://api.weixin.qq.com/customservice/kfsession/close";
|
||||
this.wxMpService.execute(new SimplePostRequestExecutor(), url,
|
||||
request.toJson());
|
||||
|
||||
Reference in New Issue
Block a user