浏览代码

封禁24 改为 1 现时间单位由小时改为天

marxjaw 2 月之前
父节点
当前提交
f00edab040
共有 1 个文件被更改,包括 13 次插入0 次删除
  1. 13 0
      yt-common/src/main/java/com/ytpm/app/model/YtAppDefaultConfig.java

+ 13 - 0
yt-common/src/main/java/com/ytpm/app/model/YtAppDefaultConfig.java

@@ -6,6 +6,8 @@ import lombok.AllArgsConstructor;
 import lombok.Data;
 import lombok.NoArgsConstructor;
 
+import java.util.Objects;
+
 @Data
 @NoArgsConstructor
 @AllArgsConstructor
@@ -58,4 +60,15 @@ public class YtAppDefaultConfig {
     private Integer interstitialIntervalTime;
     @ApiModelProperty("渠道类型id")
     private String ditchId;
+
+
+    public YtAppDefaultConfig(Object o, String appName, String wxAppId, String wxSecret, String appId, String appKey, int appType) {
+        this.configId = Objects.isNull(o)?null: Integer.parseInt(o.toString());
+        this.configName = appName;
+        this.openId = wxAppId;
+        this.secret = wxSecret;
+        this.appId = appId;
+        this.appKey = appKey;
+        this.appType = appType;
+    }
 }