10000 新增草稿返回mediaId的String两头多了双引号 · Issue #2553 · binarywang/WxJava · GitHub
[go: up one dir, main page]

Skip to content
新增草稿返回mediaId的String两头多了双引号 #2553
Closed
@CodeingX

Description

@CodeingX

确认属于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的值会带有双引号

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0