优化QrCodeUtil

This commit is contained in:
TomXin
2022-08-22 13:01:15 +08:00
parent 9543012fec
commit 62735daa36
2 changed files with 5 additions and 3 deletions

View File

@@ -147,7 +147,9 @@ public class QrConfig {
* @since 5.1.1
*/
public QrConfig setForeColor(Color foreColor) {
if(null != foreColor){
if(null == foreColor){
this.foreColor = null;
} else {
this.foreColor = foreColor.getRGB();
}
return this;