Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

敏感词更新接口参数对不上 #2993

Closed
jinxiaoyi opened this issue Apr 24, 2023 · 2 comments
Closed

敏感词更新接口参数对不上 #2993

jinxiaoyi opened this issue Apr 24, 2023 · 2 comments
Milestone

Comments

@jinxiaoyi
Copy link

简要描述

敏感词接口

模块版本情况

  • WxJava 模块名: weixin-java-cp
  • WxJava 版本号: 4.5.0

详细描述

WxCpExternalContactServiceImpl::updateInterceptRule() 方法中 WxCpInterceptRule入参结构不对
public class WxCpInterceptRule implements Serializable, ToJson {
private static final long serialVersionUID = 7161086545769110431L;
@SerializedName("rule_name")
private String ruleName;
@SerializedName("rule_id")
private String ruleId;
@SerializedName("word_list")
private List wordList;
@SerializedName("extra_rule")
private ExtraRule extraRule;
@SerializedName("intercept_type")
private int interceptType;
@SerializedName("applicable_range")
private ApplicableRange applicableRange;
}

实际企业微信入参请求
{
"rule_id":"xxxx",
"rule_name":"rulename",
"word_list":[
"敏感词1","敏感词2"
],
"extra_rule":{
"semantics_list":[1,2,3],
},
"intercept_type":1,
"add_applicable_range":{
"user_list":["zhangshan"],
"department_list":[2,3]
},
"remove_applicable_range":{
"user_list":["zhangshan"],
"department_list":[2,3]
}
}

@binarywang
Copy link
Member

应该是官方文档做了调整,欢迎楼主直接提供优化代码

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants