Skip to content

Commit a736621

Browse files
arthur0201hywr
authored andcommitted
🎨 binarywang#2144【企业微信】更新任务卡片消息状态接口参数跟文档保持一致
1 parent 953b5f9 commit a736621

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/WxCpTaskCardService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public interface WxCpTaskCardService {
2525
*
2626
* @param userIds 企业的成员ID列表
2727
* @param taskId 任务卡片ID
28-
* @param clickedKey 已点击按钮的Key
28+
* @param replaceName 替换文案
2929
*/
30-
void update(List<String> userIds, String taskId, String clickedKey) throws WxErrorException;
30+
void update(List<String> userIds, String taskId, String replaceName) throws WxErrorException;
3131
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ public class WxCpTaskCardServiceImpl implements WxCpTaskCardService {
2626
private final WxCpService mainService;
2727

2828
@Override
29-
public void update(List<String> userIds, String taskId, String clickedKey) throws WxErrorException {
29+
public void update(List<String> userIds, String taskId, String replaceName) throws WxErrorException {
3030
Integer agentId = this.mainService.getWxCpConfigStorage().getAgentId();
3131

3232
Map<String, Object> data = new HashMap<>(4);
3333
data.put("userids", userIds);
3434
data.put("agentid", agentId);
3535
data.put("task_id", taskId);
36-
data.put("clicked_key", clickedKey);
36+
data.put("replace_name", replaceName);
3737

3838
String url = this.mainService.getWxCpConfigStorage().getApiUrl(UPDATE_TASK_CARD);
3939
this.mainService.post(url, WxGsonBuilder.create().toJson(data));

0 commit comments

Comments
 (0)