管道基础大数据平台系统开发-【后端】-Server
1
13693261870
2022-11-15 fd098f67ef7e57f7165c06519a3f238f9d4529b0
src/main/java/com/lf/server/entity/other/FloatServerResponse.java
文件名从 src/main/java/com/lf/server/entity/show/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() {