Skip to content

对帐单下载bug#287

Merged
binarywang merged 1 commit intobinarywang:developfrom
lwxian:develop
Jul 21, 2017
Merged

对帐单下载bug#287
binarywang merged 1 commit intobinarywang:developfrom
lwxian:develop

Conversation

@lwxian
Copy link
Copy Markdown

@lwxian lwxian commented Jul 21, 2017

1、返回的对象没有对帐单对象;
2、返回对账单的所有属性的值最后有个空格没有去掉;

2、返回对账单的所有属性的值最后有个空格没有去掉;
wxPayBillBaseResult.setAttach(tempStr[k + 21]);
wxPayBillBaseResult.setPoundage(tempStr[k + 22]);
wxPayBillBaseResult.setPoundageRate(tempStr[k + 23]);
wxPayBillBaseResult.setTradeTime(tempStr[k].trim());
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

我觉得trim()这个方法不保险,不如使用StringUtils.trimToNull或者trimToEmpty

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

你是担心空指针吗?
354行:String newStr = listStr.replaceAll(",", " "); // 去空格

这段代码在每个值后面加了个空格,应该是不会有空指针这种情况

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不过你的担心是对的,按你的改也没有问题!

@binarywang binarywang merged commit b9c9b84 into binarywang:develop Jul 21, 2017
binarywang pushed a commit that referenced this pull request Sep 2, 2017
同时修复返回对账单的所有属性的值最后多余的空格;
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

Successfully merging this pull request may close these issues.

2 participants