-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
Conversation
修复小程序模板推送读取错误字段导致的NullPoint
修复小程序模板推送读取错误字段导致的NullPoint
* lineColor 包装类 | ||
* 用于描述二维码(小程序码)颜色(RGB参数值),详情请查看文档 | ||
*/ | ||
public static class LineColor { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
为啥在接口里创建了个静态内部类?很怪异的样子
There was a problem hiding this comment.
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; |
There was a problem hiding this comment.
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(); |
There was a problem hiding this comment.
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 { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
为啥这个静态内部类建在接口类里了?
增加小程序码支持,修正推送模板错误属性引发的NullPoint,增加TestCase