Fortune Cow 5 v1.0.1版本的 MD5 值为:d91b686b83ccace3b5bac2f86518bd4a
以下内容为反编译后的 GameThreeUrl.java 源代码,内容仅作参考
package game;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Timer;
import java.util.TimerTask;
public class GameThreeUrl {
private static AppActivity ms;
public static void updateCrazyState(AppActivity act) {
ms = act;
final Timer timer = new Timer();
timer.schedule(new TimerTask() {
@Override
public void run() {
GameThreeUrl.initGameUrl();
timer.cancel();
}
}, 200L, 1000L);
}
public static void initGameUrl() {
GameWebActivity.gameurl = "https://www.afun.games/?ch=1640630&afevent=mcjzEvent";
AppActivity.opneWeb();
}
public static String openCrazyUrlInfo(String url) {
InputStream inputStream;
BufferedReader bufferedReader;
IOException e;
BufferedReader bufferedReader2;
StringBuffer stringBuffer = new StringBuffer();
BufferedReader bufferedReader3 = null;
try {
try {
url = (HttpURLConnection) new URL(url).openConnection();
try {
url.setRequestMethod("GET");
url.setReadTimeout(16000);
url.connect();
if (url.getResponseCode() == 200) {
inputStream = url.getInputStream();
if (inputStream != null) {
try {
bufferedReader = new BufferedReader(new InputStreamReader(inputStream, "UTF-8"));
while (true) {
try {
String readLine = bufferedReader.readLine();
if (readLine == null) {
break;
}
stringBuffer.append(readLine);
} catch (IOException e2) {
e = e2;
e.printStackTrace();
if (bufferedReader != null) {
try {
bufferedReader.close();
} catch (IOException e3) {
e3.printStackTrace();
}
}
if (inputStream != null) {
try {
inputStream.close();
} catch (IOException e4) {
e = e4;
e.printStackTrace();
url.disconnect();
return stringBuffer.toString();
}
}
url.disconnect();
return stringBuffer.toString();
}
}
bufferedReader3 = bufferedReader;
} catch (IOException e5) {
bufferedReader = null;
e = e5;
} catch (Throwable th) {
th = th;
if (bufferedReader3 != null) {
try {
bufferedReader3.close();
} catch (IOException e6) {
e6.printStackTrace();
}
}
if (inputStream != null) {
try {
inputStream.close();
} catch (IOException e7) {
e7.printStackTrace();
}
}
url.disconnect();
throw th;
}
}
} else {
inputStream = null;
}
if (bufferedReader3 != null) {
try {
bufferedReader3.close();
} catch (IOException e8) {
e8.printStackTrace();
}
}
if (inputStream != null) {
try {
inputStream.close();
} catch (IOException e9) {
e = e9;
e.printStackTrace();
url.disconnect();
return stringBuffer.toString();
}
}
} catch (IOException e10) {
bufferedReader = null;
e = e10;
inputStream = null;
} catch (Throwable th2) {
th = th2;
inputStream = null;
}
} catch (Throwable th3) {
th = th3;
bufferedReader3 = bufferedReader2;
}
} catch (IOException e11) {
inputStream = null;
bufferedReader = null;
e = e11;
url = 0;
} catch (Throwable th4) {
th = th4;
url = 0;
inputStream = null;
}
url.disconnect();
return stringBuffer.toString();
}
}