Adds switches for modern and legacy switches. This will be added once the next build goes public.
This commit is contained in:
parent
32d44f6532
commit
d05b3e9507
@ -206,9 +206,15 @@ public class delegationServices {
|
|||||||
try {
|
try {
|
||||||
|
|
||||||
Document LCP = RGFilter.find(eq("rgkey", "UAROCKS")).first();
|
Document LCP = RGFilter.find(eq("rgkey", "UAROCKS")).first();
|
||||||
String UPDT = (String) LCP.get("UURI");
|
String UPDT;
|
||||||
|
if ((double) Lrequest.get("apiversion") == (double) Filter.get("modernUpdaterAPIRequire")) {
|
||||||
|
UPDT = (String) LCP.get("MUURI");
|
||||||
|
System.out.println("Modern: " + UPDT);
|
||||||
|
} else {
|
||||||
|
UPDT = (String) LCP.get("UURI");
|
||||||
|
System.out.println("Legacy: " + UPDT);
|
||||||
|
}
|
||||||
String config = (String) LCP.get("config");
|
String config = (String) LCP.get("config");
|
||||||
System.out.println("ThisIsConfig " + config);
|
|
||||||
updateQuery.append("$set",
|
updateQuery.append("$set",
|
||||||
new BasicDBObject().append("type", 42));
|
new BasicDBObject().append("type", 42));
|
||||||
updateQuery2.append("$set",
|
updateQuery2.append("$set",
|
||||||
@ -247,7 +253,15 @@ public class delegationServices {
|
|||||||
BasicDBObject updateQuery6 = new BasicDBObject();
|
BasicDBObject updateQuery6 = new BasicDBObject();
|
||||||
try {
|
try {
|
||||||
Document LCP = RGFilter.find(eq("rgkey", "UAROCKS")).first();
|
Document LCP = RGFilter.find(eq("rgkey", "UAROCKS")).first();
|
||||||
String UPDT = (String) LCP.get("URI");
|
String UPDT;
|
||||||
|
if ((double) Lrequest.get("apiversion") == (double) Filter.get("modernUpdaterAPIRequire")) {
|
||||||
|
UPDT = (String) LCP.get("MURI");
|
||||||
|
System.out.println("Modern: " + UPDT);
|
||||||
|
} else {
|
||||||
|
UPDT = (String) LCP.get("URI");
|
||||||
|
System.out.println("Legacy: " + UPDT);
|
||||||
|
}
|
||||||
|
|
||||||
updateQuery.append("$set",
|
updateQuery.append("$set",
|
||||||
new BasicDBObject().append("type", 42));
|
new BasicDBObject().append("type", 42));
|
||||||
updateQuery2.append("$set",
|
updateQuery2.append("$set",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user