|
|
@@ -959,6 +959,15 @@ public class WxCorpOpsImpl implements WxCorpOps {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ *
|
|
|
+ * @param corpId
|
|
|
+ * @param openKfId
|
|
|
+ * @param userid
|
|
|
+ * @param externalUserId
|
|
|
+ * @param serviceState 0未处理 1由智能助手接待 2待接入池排队中 3由人工接待 4已结束/未开始
|
|
|
+ * @throws Exception
|
|
|
+ */
|
|
|
@Override
|
|
|
public void transCorpKfSessionToServicer(String corpId, String openKfId, String userid, String externalUserId, Integer serviceState) throws Exception {
|
|
|
String url = "https://qyapi.weixin.qq.com/cgi-bin/kf/service_state/trans?access_token=" + getAccessToken(corpId);
|
|
|
@@ -966,7 +975,7 @@ public class WxCorpOpsImpl implements WxCorpOps {
|
|
|
request.putOpt("open_kfid", openKfId);
|
|
|
request.putOpt("external_userid", externalUserId);
|
|
|
//由人工接待
|
|
|
- request.putOpt("service_state", 3);
|
|
|
+ request.putOpt("service_state", serviceState);
|
|
|
request.putOpt("servicer_userid", userid);
|
|
|
HttpResponse<String> res =
|
|
|
J11HttpC.custom()
|