Skip to content

Commit

Permalink
🎨 Wechat-Group#2144【企业微信】更新任务卡片消息状态接口参数跟文档保持一致
Browse files Browse the repository at this point in the history
  • Loading branch information
arthur0201 authored and hywr committed Jun 23, 2021
1 parent 953b5f9 commit a736621
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public interface WxCpTaskCardService {
*
* @param userIds 企业的成员ID列表
* @param taskId 任务卡片ID
* @param clickedKey 已点击按钮的Key
* @param replaceName 替换文案
*/
void update(List<String> userIds, String taskId, String clickedKey) throws WxErrorException;
void update(List<String> userIds, String taskId, String replaceName) throws WxErrorException;
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ public class WxCpTaskCardServiceImpl implements WxCpTaskCardService {
private final WxCpService mainService;

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

Map<String, Object> data = new HashMap<>(4);
data.put("userids", userIds);
data.put("agentid", agentId);
data.put("task_id", taskId);
data.put("clicked_key", clickedKey);
data.put("replace_name", replaceName);

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

0 comments on commit a736621

Please sign in to comment.