mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
优化QrCodeUtil
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user