mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2026-02-17 21:56:28 +08:00
🎨 #2077 【开放平台】代小程序实现业务获取基本信息接口新增nickname相关字段
返回参数: nickname_info 名称信息,nickname 小程序名称 https://developers.weixin.qq.com/doc/oplatform/Third-party_Platforms/Mini_Programs/Mini_Program_Information_Settings.html
This commit is contained in:
@@ -34,7 +34,14 @@ public class WxFastMaAccountBasicInfoResultTest {
|
||||
" \"head_image_url\": \"http://mmbiz.qpic.cn/mmbiz/a5icZrUmbV8p5jb6RZ8aYfjfS2AVle8URwBt8QIu6XbGewB9wiaWYWkPwq4R7pfdsFibuLkic16UcxDSNYtB8HnC1Q/0\",\n" +
|
||||
" \"modify_used_count\": 3,\n" +
|
||||
" \"modify_quota\": 5\n" +
|
||||
" }\n" +
|
||||
" },\n" +
|
||||
|
||||
"\t\"nickname_info\": {\n" +
|
||||
" \"nickname\": \"nickey\",\n" +
|
||||
" \"modify_used_count\": 2,\n" +
|
||||
" \"modify_quota\": 2\n" +
|
||||
" },\n" +
|
||||
" \"nickname\": \"nickeyInfo\"\n" +
|
||||
"}";
|
||||
|
||||
WxFastMaAccountBasicInfoResult res = WxOpenGsonBuilder.create().fromJson(json, WxFastMaAccountBasicInfoResult.class);
|
||||
@@ -45,6 +52,8 @@ public class WxFastMaAccountBasicInfoResultTest {
|
||||
assertNotNull(res.getHeadImageInfo().getHeadImageUrl());
|
||||
assertNotNull(res.getWxVerifyInfo().getNamingVerify());
|
||||
assertTrue(res.getWxVerifyInfo().getNamingVerify());
|
||||
assertNotNull(res.getNicknameInfo().getNickname());
|
||||
assertNotNull(res.getNickname());
|
||||
System.out.println(res);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user