|
@@ -9,6 +9,7 @@ import com.qmth.boot.tools.crypto.RSA;
|
|
import com.qmth.boot.tools.crypto.RsaHelper;
|
|
import com.qmth.boot.tools.crypto.RsaHelper;
|
|
import com.qmth.boot.tools.device.DeviceInfo;
|
|
import com.qmth.boot.tools.device.DeviceInfo;
|
|
import com.qmth.boot.tools.models.ByteArray;
|
|
import com.qmth.boot.tools.models.ByteArray;
|
|
|
|
+import com.qmth.ops.biz.domain.App;
|
|
import com.qmth.ops.biz.domain.Deploy;
|
|
import com.qmth.ops.biz.domain.Deploy;
|
|
import com.qmth.ops.biz.domain.Org;
|
|
import com.qmth.ops.biz.domain.Org;
|
|
import com.qmth.ops.biz.query.OrgQuery;
|
|
import com.qmth.ops.biz.query.OrgQuery;
|
|
@@ -44,8 +45,8 @@ public class LicenseService {
|
|
return new ObjectMapper().readValue(privateKey.decrypt(file.getBytes()).value(), DeviceInfo.class);
|
|
return new ObjectMapper().readValue(privateKey.decrypt(file.getBytes()).value(), DeviceInfo.class);
|
|
}
|
|
}
|
|
|
|
|
|
- public void buildLicense(@NotNull Deploy deploy, String deviceId, String version, @NotNull OutputStream ous)
|
|
|
|
- throws Exception {
|
|
|
|
|
|
+ public void buildLicense(@NotNull Deploy deploy, @NotNull App app, String deviceId, String version,
|
|
|
|
+ @NotNull OutputStream ous) throws Exception {
|
|
//build deploy info
|
|
//build deploy info
|
|
AppLicense license = new AppLicense();
|
|
AppLicense license = new AppLicense();
|
|
license.setId(deploy.getId());
|
|
license.setId(deploy.getId());
|