正在查看: Clash Legends v0.0.1 应用的 h.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: Clash Legends v0.0.1 应用的 h.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.payu.upisdk.upiintent;
import android.webkit.CookieManager;
import java.net.URL;
import javax.net.ssl.HttpsURLConnection;
public class h implements Runnable {
public h(PaymentResponseUpiSdkActivity paymentResponseUpiSdkActivity) {
}
@Override
public void run() {
HttpsURLConnection httpsURLConnection;
try {
StringBuilder sb = new StringBuilder();
try {
String cookie = CookieManager.getInstance().getCookie("https://secure.payu.in");
if (cookie != null) {
for (String str : cookie.split(";")) {
String[] split = str.split("=");
sb.append(split[0]).append("=").append(split[1]).append(";");
}
}
if (sb.length() > 0) {
sb = new StringBuilder(sb.substring(0, sb.length() - 1));
}
} catch (Exception e) {
e.printStackTrace();
}
String sb2 = sb.toString();
try {
httpsURLConnection = (HttpsURLConnection) new URL("https://secure.payu.in/paytxn").openConnection();
httpsURLConnection.setRequestMethod("POST");
httpsURLConnection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
if (sb2 != null) {
httpsURLConnection.setRequestProperty("Cookie", sb2);
}
httpsURLConnection.setSSLSocketFactory(new com.payu.upisdk.util.b());
httpsURLConnection.setDoOutput(true);
} catch (Exception e2) {
httpsURLConnection = null;
}
if (httpsURLConnection.getResponseCode() != 200) {
com.payu.upisdk.util.a.a("BackButtonClick - UnSuccessful post to Paytxn");
} else {
com.payu.upisdk.util.a.a("BackButtonClick - Successful post to Paytxn");
}
} catch (Exception e3) {
e3.printStackTrace();
}
}
}