mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2026-03-10 00:13:40 +08:00
🎨 【小程序】获取小程序码的createWxaCode相关接口支持envVersion参数
This commit is contained in:
@@ -10,6 +10,8 @@ import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
import static cn.binarywang.wx.miniapp.constant.WxMaConstants.DEFAULT_ENV_VERSION;
|
||||
|
||||
/**
|
||||
* 小程序码.
|
||||
*
|
||||
@@ -26,6 +28,9 @@ public class WxaCode extends AbstractWxMaQrcodeWrapper implements Serializable {
|
||||
|
||||
private String path;
|
||||
|
||||
@SerializedName("env_version")
|
||||
private String envVersion = DEFAULT_ENV_VERSION;
|
||||
|
||||
@Builder.Default
|
||||
private int width = 430;
|
||||
|
||||
|
||||
@@ -7,6 +7,8 @@ import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import static cn.binarywang.wx.miniapp.constant.WxMaConstants.DEFAULT_ENV_VERSION;
|
||||
|
||||
/**
|
||||
* 小程序码接口B.
|
||||
*
|
||||
@@ -24,7 +26,7 @@ public class WxaCodeUnlimit extends AbstractWxMaQrcodeWrapper implements Seriali
|
||||
private boolean checkPath = true;
|
||||
|
||||
@SerializedName("env_version")
|
||||
private String envVersion = "release";
|
||||
private String envVersion = DEFAULT_ENV_VERSION;
|
||||
|
||||
private int width = 430;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user