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

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

Merged
merged 4 commits into from
Jul 27, 2017

Conversation

einsitang
Copy link
Member

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

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

Choose a reason for hiding this comment

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

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

Copy link
Member 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
Member

Choose a reason for hiding this comment

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

未添加javadoc,其他方法一样

@@ -24,7 +24,7 @@ public static File createTmpFile(InputStream inputStream, String name, String ex
tmpFile = File.createTempFile(name, '.' + ext, tmpDirFile);
}

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

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
Member

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 Wechat-Group: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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants