正在查看: 新暖心缘 v8.1.1 应用的 h.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: 新暖心缘 v8.1.1 应用的 h.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package w6;
import android.content.Context;
import android.os.Handler;
import android.text.TextUtils;
import com.tencent.connect.share.QzonePublish;
import com.tencent.open.SocialOperation;
import java.io.File;
import java.net.InetAddress;
import java.util.concurrent.TimeUnit;
import org.json.JSONException;
import org.json.JSONObject;
import w6.a;
import x8.a0;
import x8.c0;
import x8.d0;
import x8.y;
import x8.z;
public class h {
public static String f18178f = "https://vod2.qcloud.com/v3/index.php?Action=";
private Context f18179a;
private String f18180b;
private a0 f18181c;
private Handler f18182d;
private String f18183e = "";
class a implements Runnable {
final String f18184a;
a(String str) {
this.f18184a = str;
}
@Override
public void run() {
try {
InetAddress byName = InetAddress.getByName(this.f18184a);
h.this.f18183e = byName.getHostAddress();
} catch (Exception e8) {
e8.printStackTrace();
}
}
}
class b implements Runnable {
final String f18186a;
b(String str) {
this.f18186a = str;
}
@Override
public void run() {
try {
InetAddress byName = InetAddress.getByName(this.f18186a);
h.this.f18183e = byName.getHostAddress();
} catch (Exception e8) {
h.this.f18183e = this.f18186a;
e8.printStackTrace();
}
}
}
class c implements Runnable {
final String f18188a;
c(String str) {
this.f18188a = str;
}
@Override
public void run() {
try {
InetAddress byName = InetAddress.getByName(this.f18188a);
h.this.f18183e = byName.getHostAddress();
} catch (Exception e8) {
h.this.f18183e = this.f18188a;
e8.printStackTrace();
}
}
}
public h(Context context, String str, int i8) {
this.f18179a = context;
this.f18180b = str;
a0.a z7 = new a0().z();
long j8 = i8;
TimeUnit timeUnit = TimeUnit.SECONDS;
this.f18181c = z7.d(j8, timeUnit).R(j8, timeUnit).l0(j8, timeUnit).c();
this.f18182d = new Handler(context.getMainLooper());
}
public int b(String str, String str2, String str3, x8.f fVar) {
String str4;
String str5 = "https://" + str + "/v3/index.php?Action=CommitUploadUGC";
StringBuilder sb = new StringBuilder();
sb.append("finishUploadUGC->request url:");
sb.append(str5);
try {
JSONObject jSONObject = new JSONObject();
jSONObject.put(SocialOperation.GAME_SIGNATURE, this.f18180b);
jSONObject.put("clientReportId", str2);
jSONObject.put("clientVersion", "1.0.8.2");
jSONObject.put("vodSessionKey", str3);
str4 = jSONObject.toString();
} catch (JSONException e8) {
e8.printStackTrace();
str4 = "";
}
c0 b8 = new c0.a().x(str5).n(d0.create(y.f("application/json"), str4)).b();
new Thread(new b(b8.k().i())).start();
this.f18181c.A(b8).s(fVar);
return 0;
}
public String c() {
return this.f18183e;
}
public int d(e eVar, String str, String str2, x8.f fVar) {
String str3;
String str4 = f18178f + "ApplyUploadUGC";
StringBuilder sb = new StringBuilder();
sb.append("initUploadUGC->request url:");
sb.append(str4);
try {
JSONObject jSONObject = new JSONObject();
jSONObject.put(SocialOperation.GAME_SIGNATURE, this.f18180b);
jSONObject.put("videoName", eVar.f());
jSONObject.put("videoType", eVar.i());
if (eVar.k()) {
jSONObject.put("coverName", eVar.c());
jSONObject.put("coverType", eVar.b());
}
jSONObject.put("clientReportId", str);
jSONObject.put("clientVersion", "1.0.8.2");
if (!TextUtils.isEmpty(str2)) {
jSONObject.put("vodSessionKey", str2);
}
str3 = jSONObject.toString();
} catch (JSONException e8) {
e8.printStackTrace();
str3 = "";
}
c0 b8 = new c0.a().x(str4).n(d0.create(y.f("application/json"), str3)).b();
new Thread(new a(b8.k().i())).start();
this.f18181c.A(b8).s(fVar);
return 0;
}
public void e(e eVar, String str, a.c cVar, x8.f fVar) {
String str2;
File file = new File(eVar.g());
z.a aVar = new z.a();
aVar.f(z.k);
try {
JSONObject jSONObject = new JSONObject();
jSONObject.put(SocialOperation.GAME_SIGNATURE, this.f18180b);
jSONObject.put("videoName", eVar.f());
jSONObject.put("videoType", eVar.i());
jSONObject.put(QzonePublish.PUBLISH_TO_QZONE_VIDEO_SIZE, eVar.h());
if (eVar.k()) {
jSONObject.put("coverName", eVar.c());
jSONObject.put("coverType", eVar.b());
jSONObject.put("coverSize", eVar.a());
}
jSONObject.put("clientReportId", str);
jSONObject.put("clientVersion", "1.0.8.2");
str2 = jSONObject.toString();
} catch (JSONException e8) {
e8.printStackTrace();
str2 = "";
}
aVar.b("para", (String) null, d0.create(y.f("application/json"), str2));
aVar.b("video_content", file.getName(), d0.create(y.f("application/octet-stream"), file));
if (eVar.k()) {
aVar.b("cover_content", eVar.c(), d0.create(y.f("application/octet-stream"), new File(eVar.d())));
}
z e9 = aVar.e();
c0 b8 = new c0.a().x(f18178f + "UploadFile").n(new w6.a(e9, cVar)).b();
new Thread(new c(b8.k().i())).start();
this.f18181c.A(b8).s(fVar);
}
public void f(String str) {
this.f18180b = str;
}
}