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

无法创建 TaskCardButton 类 #1550

Closed
Mrxun-JN opened this issue May 8, 2020 · 4 comments
Closed

无法创建 TaskCardButton 类 #1550

Mrxun-JN opened this issue May 8, 2020 · 4 comments

Comments

@Mrxun-JN
Copy link

Mrxun-JN commented May 8, 2020

使用版本 3.7.8.B
代码如下
List buttons = new ArrayList<>();
TaskCardButton button1 = new TaskCardButton();//该处会提示
button1.setKey("yes");
button1.setName("同意");
button1.setReplaceName("同意杀题");
button1.setColor("blue");
button1.setBold(true);

提示错误
java: 无法将类 me.chanjar.weixin.cp.bean.taskcard.TaskCardButton中的构造器 TaskCardButton应用到给定类型;
需要: java.lang.String,java.lang.String,java.lang.String,java.lang.String,java.lang.Boolean
找到: 没有参数
原因: 实际参数列表和形式参数列表长度不同

@Mrxun-JN
Copy link
Author

Mrxun-JN commented May 8, 2020

应该和上次 MpnewsArticle 类一样

@binarywang
Copy link
Owner

你先使用builder方法吧,之前确实是考虑欠妥

@Mrxun-JN
Copy link
Author

好的,感谢

@binarywang
Copy link
Owner

3.7.9.B版本已优化

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

No branches or pull requests

2 participants