Update the link for crash reports
This commit is contained in:
@@ -160,7 +160,7 @@ public final class Launcher extends Application {
|
|||||||
public static final IUpgrader UPGRADER = new AppDataUpgrader();
|
public static final IUpgrader UPGRADER = new AppDataUpgrader();
|
||||||
public static final CrashReporter CRASH_REPORTER = new CrashReporter();
|
public static final CrashReporter CRASH_REPORTER = new CrashReporter();
|
||||||
|
|
||||||
public static final String UPDATE_SERVER = "http://hmcl.huangyuhui.net";
|
public static final String UPDATE_SERVER = "https://hmcl.huangyuhui.net";
|
||||||
public static final String CONTACT = UPDATE_SERVER + "/hmcl.php";
|
public static final String CONTACT = UPDATE_SERVER + "/hmcl.php";
|
||||||
public static final String PUBLISH = "http://www.mcbbs.net/thread-142335-1-1.html";
|
public static final String PUBLISH = "http://www.mcbbs.net/thread-142335-1-1.html";
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -121,7 +121,7 @@ public class CrashReporter implements Thread.UncaughtExceptionHandler {
|
|||||||
map.put("version", Launcher.VERSION);
|
map.put("version", Launcher.VERSION);
|
||||||
map.put("log", Logging.getLogs());
|
map.put("log", Logging.getLogs());
|
||||||
try {
|
try {
|
||||||
String response = NetworkUtils.doPost(NetworkUtils.toURL("https://huangyuhui.duapp.com/hmcl/crash.php"), map);
|
String response = NetworkUtils.doPost(NetworkUtils.toURL("https://hmcl.huangyuhui.net/hmcl/crash.php"), map);
|
||||||
if (StringUtils.isNotBlank(response))
|
if (StringUtils.isNotBlank(response))
|
||||||
LOG.log(Level.SEVERE, "Crash server response: " + response);
|
LOG.log(Level.SEVERE, "Crash server response: " + response);
|
||||||
} catch (IOException ex) {
|
} catch (IOException ex) {
|
||||||
|
|||||||
Reference in New Issue
Block a user