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

新增草稿返回mediaId的String两头多了双引号 #2553

Closed
CodeingX opened this issue Mar 3, 2022 · 2 comments
Closed

新增草稿返回mediaId的String两头多了双引号 #2553

CodeingX opened this issue Mar 3, 2022 · 2 comments
Milestone

Comments

@CodeingX
Copy link

CodeingX commented Mar 3, 2022

确认属于bug,是GSON过期方法带来的公共方法的BUG,本人没用过GSON

简要描述

WxMpDraftService.addDraft(WxMpAddDraft addDraft)方法返回的mediaId两头多了双引号

模块版本情况

  • WxJava 模块名: mp
  • WxJava 版本号: 4.2.0

详细描述

String json = this.mpService.post(WxMpApiUrl.Draft.ADD_DRAFT, addDraft);
return GsonParser.parse(json).get(MEDIA_ID).toString();

在将json转为对象并根据Key获取value时String的值会带有双引号

@gzlboy
Copy link

gzlboy commented Mar 3, 2022

哈哈,我昨天被坑了一下午,太难注意到这个引号了

@rabbitlhf
Copy link

rabbitlhf commented Mar 7, 2022

请问什么时候发版? @binarywang

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

4 participants