文件名从 src/main/java/com/lf/server/entity/show/FloatServerResponse.java 修改 |
| | |
| | | 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 |
| | |
| | | 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() { |