Forráskód Böngészése

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

marxjaw 2 hónapja
szülő
commit
f00edab040

+ 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;
+    }
 }