mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-11-04 06:07:59 +08:00
🎨 #2144【企业微信】更新任务卡片消息状态接口参数跟文档保持一致
This commit is contained in:
@ -25,7 +25,7 @@ public interface WxCpTaskCardService {
|
|||||||
*
|
*
|
||||||
* @param userIds 企业的成员ID列表
|
* @param userIds 企业的成员ID列表
|
||||||
* @param taskId 任务卡片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;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -26,14 +26,14 @@ public class WxCpTaskCardServiceImpl implements WxCpTaskCardService {
|
|||||||
private final WxCpService mainService;
|
private final WxCpService mainService;
|
||||||
|
|
||||||
@Override
|
@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();
|
Integer agentId = this.mainService.getWxCpConfigStorage().getAgentId();
|
||||||
|
|
||||||
Map<String, Object> data = new HashMap<>(4);
|
Map<String, Object> data = new HashMap<>(4);
|
||||||
data.put("userids", userIds);
|
data.put("userids", userIds);
|
||||||
data.put("agentid", agentId);
|
data.put("agentid", agentId);
|
||||||
data.put("task_id", taskId);
|
data.put("task_id", taskId);
|
||||||
data.put("clicked_key", clickedKey);
|
data.put("replace_name", replaceName);
|
||||||
|
|
||||||
String url = this.mainService.getWxCpConfigStorage().getApiUrl(UPDATE_TASK_CARD);
|
String url = this.mainService.getWxCpConfigStorage().getApiUrl(UPDATE_TASK_CARD);
|
||||||
this.mainService.post(url, WxGsonBuilder.create().toJson(data));
|
this.mainService.post(url, WxGsonBuilder.create().toJson(data));
|
||||||
|
|||||||
Reference in New Issue
Block a user