Explorar el Código

:bug: #2894 【企业微信】修复update_taskcard 方法传参错误的问题

th3ee9ine hace 2 años
padre
commit
8088c4ada8

+ 2 - 1
weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpTaskCardServiceImpl.java

@@ -33,7 +33,8 @@ public class WxCpTaskCardServiceImpl implements WxCpTaskCardService {
     data.put("userids", userIds);
     data.put("agentid", agentId);
     data.put("task_id", taskId);
-    data.put("replace_name", replaceName);
+    // 文档地址:https://open.work.weixin.qq.com/wwopen/devtool/interface?doc_id=16386
+    data.put("clicked_key", replaceName);
 
     String url = this.mainService.getWxCpConfigStorage().getApiUrl(UPDATE_TASK_CARD);
     this.mainService.post(url, WxGsonBuilder.create().toJson(data));