fix hash order

Signed-off-by: pengzhile <pengzhile@gmail.com>
This commit is contained in:
pengzhile 2021-09-16 11:46:52 +08:00
parent d5b9b974d7
commit 1095be6b25
3 changed files with 7 additions and 4 deletions

View File

@ -1,4 +1,4 @@
# Atlassian Agent
# Atlassian Agent v1.3.1
#### Support (almost any version, include 8.0):
* JIRA Software [FAQ](doc/JIRA_FAQ.md)

View File

@ -14,6 +14,7 @@ import java.util.Map;
* @link https://zhile.io
*/
public class Usage {
private static final String VERSION = "v1.3.1";
private static final Options OPTIONS = new Options();
private static final Map<String, String> PRODUCTS = new HashMap<>(16);
private static final String PRODUCTS_DESC;
@ -31,6 +32,7 @@ public class Usage {
PRODUCTS.put("jc", "JIRA Core");
PRODUCTS.put("portfolio", "Portfolio plugin for JIRA");
PRODUCTS.put("jsd", "JIRA Service Desk");
PRODUCTS.put("jsm", "JIRA Service Management");
PRODUCTS.put("training", "Training plugin for JIRA");
PRODUCTS.put("capture", "Capture plugin for JIRA");
PRODUCTS.put("*", "Third party plugin key, looks like: com.foo.bar");
@ -49,7 +51,7 @@ public class Usage {
public static void main(String[] args) {
String usage = "\n====================================================\n" +
"======= Atlassian Crack Agent =======\n" +
"======= Atlassian Crack Agent " + VERSION + " =======\n" +
"======= https://zhile.io =======\n" +
"======= QQ Group: 30347511 =======\n" +
"====================================================\n\n";
@ -141,6 +143,7 @@ public class Usage {
property = new Portfolio(contactName, contactEMail, serverID, organisation, dataCenter);
break;
case "jsd":
case "jsm":
property = new JIRAServiceDesk(contactName, contactEMail, serverID, organisation, dataCenter);
break;
case "training":

View File

@ -60,7 +60,6 @@ abstract public class LicenseProperty {
setLicenseVersion("2");
setKeyVersion("1600708331");
setLicenseHash();
}
public void setDescription(String description) {
@ -159,7 +158,7 @@ abstract public class LicenseProperty {
continue;
}
sb.append(this.escape(key, true)).append("=").append(this.escape(val, false)).append("\n");
sb.append(escape(key, true)).append("=").append(escape(val, false)).append("\n");
}
try {
@ -216,6 +215,7 @@ abstract public class LicenseProperty {
StringBuilder sb = new StringBuilder("#");
sb.append(date.toString());
setLicenseHash();
for (Map.Entry<String, String> entry : data.entrySet()) {
if (entry.getValue() == null) {
continue;