Skip to content

Conversation

@einsitang
Copy link

增加小程序码支持,修正推送模板错误属性引发的NullPoint,增加TestCase

修复小程序模板推送读取错误字段导致的NullPoint
修复小程序模板推送读取错误字段导致的NullPoint
* lineColor 包装类
* 用于描述二维码(小程序码)颜色(RGB参数值),详情请查看文档
*/
public static class LineColor {
Copy link
Owner

Choose a reason for hiding this comment

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

为啥在接口里创建了个静态内部类?很怪异的样子

Copy link
Author

Choose a reason for hiding this comment

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

因为这个东东归纳到哪里都不太对,索性就放到这个QrcodeService里头了。

*/
File createWxCode(String path, int width, boolean autoColor, LineColor lineColor) throws WxErrorException;

File createWxCode(String path, int width) throws WxErrorException;
Copy link
Owner

Choose a reason for hiding this comment

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

未添加javadoc,其他方法一样

}

tmpFile.deleteOnExit();
// tmpFile.deleteOnExit();
Copy link
Owner

Choose a reason for hiding this comment

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

这个地方的临时文件是供调用方进一步处理的,建议退出java时删掉

* lineColor 包装类
* 用于描述二维码(小程序码)颜色(RGB参数值),详情请查看文档
*/
public static class LineColor {
Copy link
Owner

Choose a reason for hiding this comment

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

为啥这个静态内部类建在接口类里了?

@binarywang binarywang merged commit 087f037 into binarywang:develop Jul 27, 2017
binarywang pushed a commit that referenced this pull request Sep 2, 2017
* 更新小程序二维码(小程序码)接口 修复小程序模板推送读取错误字段导致的NullPoint * 更新小程序二维码(小程序码)接口 修复小程序模板推送读取错误字段导致的NullPoint * 更正WxMaMsgService接口逻辑 * 使用IDEA对miniapp做了批量格式化
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

2 participants