代码拉取完成,页面将自动刷新
本组件对应实现微信公众平台“账号管理”章节相关api接口,原接口文档地址:账号管理
top.hmtools.wxmp.account.apis.IQrcodeApis
对应实现“带参数的二维码”相关接口。top.hmtools.wxmp.account.apis.IShortUrlApis
对应实现“长链接转短链接接口”相关接口。top.hmtools.wxmp.account.models.eventMessage
包下对应实现“微信认证事件推送”相关xml数据对应的Javabean数据结构。可参阅 top.hmtools.wxmp.account.enums.EQRActionName , top.hmtools.wxmp.account.enums.EVerifyEventMessages<dependency>
<groupId>top.hmtools</groupId>
<artifactId>wxmp-account</artifactId>
<version>1.0.0</version>
</dependency>
//2 获取动态代理对象实例
IQrcodeApis qrcodeApis = this.wxmpSession.getMapper(IQrcodeApis.class);
//3 创建二维码ticket
QRCodeParam codeParam = new QRCodeParam();
ActionInfo action_info = new ActionInfo();
Scene scene = new Scene();
scene.setScene_str("aaaabbbbcccc");
action_info.setScene(scene);
codeParam.setAction_info(action_info);
codeParam.setAction_name(EQRActionName.QR_STR_SCENE);
codeParam.setExpire_seconds(20*60*60*60L);
QRCodeResult create = this.qrcodeApis.create(codeParam);
更多示例参见:
2020.06.01 账号管理组件全部测试 OK top.hmtools.wxmp.account.enums.EVerifyEventMessagesTest 中使用了自动填充Javabean数据工具
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。