🎨 【小程序】获取小程序码的createWxaCode相关接口支持envVersion参数

This commit is contained in:
Binary Wang
2022-03-01 15:47:28 +08:00
parent 533ea253d6
commit abaec2faf9
6 changed files with 71 additions and 50 deletions

View File

@@ -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;

View File

@@ -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;