From fd098f67ef7e57f7165c06519a3f238f9d4529b0 Mon Sep 17 00:00:00 2001 From: 13693261870 <252740454@qq.com> Date: 星期二, 15 十一月 2022 09:19:14 +0800 Subject: [PATCH] 1 --- src/main/java/com/lf/server/entity/other/FloatServerResponse.java | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/main/java/com/lf/server/entity/show/FloatServerResponse.java b/src/main/java/com/lf/server/entity/other/FloatServerResponse.java similarity index 79% rename from src/main/java/com/lf/server/entity/show/FloatServerResponse.java rename to src/main/java/com/lf/server/entity/other/FloatServerResponse.java index 9aaab2a..de5ed9d 100644 --- a/src/main/java/com/lf/server/entity/show/FloatServerResponse.java +++ b/src/main/java/com/lf/server/entity/other/FloatServerResponse.java @@ -1,9 +1,8 @@ -package com.lf.server.entity.show; +package com.lf.server.entity.other; import com.lf.server.helper.StringHelper; import java.util.Calendar; -import java.util.Date; /** * FloatServerResponse @@ -29,16 +28,17 @@ public FloatServerResponse() { } - public FloatServerResponse(ReqParamFloatServer req) { + public FloatServerResponse(ReqParamFloatServer rfs) { Calendar calendar = Calendar.getInstance(); calendar.set(Calendar.YEAR, 2025); - this.id = req.getId(); - this.localId = req.getLocalId(); - this.availableNum = req.getAvailableNum(); + this.id = rfs.getId(); + this.localId = rfs.getLocalId(); + this.availableNum = rfs.getAvailableNum(); this.time = calendar.getTimeInMillis(); this.expireDate = StringHelper.YMD_FORMAT.format(this.time); - this.licenseCode = "78a82f0920de0f557f8177bec1e48601c4dc25e4054a00728e4314b56528d3a1632de5298edee38a65412277977a174fea5d91c452b19ef138dbc2ba089ba632"; + //this.licenseCode = "78a82f0920de0f557f8177bec1e48601c4dc25e4054a00728e4314b56528d3a1632de5298edee38a65412277977a174fea5d91c452b19ef138dbc2ba089ba632"; + this.licenseCode = CheckOutLicense.createFloatingLicense(rfs.getAvailableNum(), rfs.getId(), this.time); } public String getModules() { -- Gitblit v1.9.3