家家有田 v1.2.8版本的 MD5 值为:62f44aac901441b9b72af508fbe86bf2
以下内容为反编译后的 g.java 源代码,内容仅作参考
package com.netease.nis.captcha;
import android.content.Context;
import android.os.Build;
import com.netease.nis.captcha.e;
import java.net.URLEncoder;
import org.json.JSONObject;
public class g {
private static volatile g b;
private final b a = new b();
class a implements e.b {
a(g gVar) {
}
@Override
public void a(String str) {
c.a("%s", "上传统计信息成功");
}
@Override
public void onError(int i, String str) {
}
}
public static class b {
String b;
String c;
String e;
String f;
String a = "captcha";
String d = "Android";
a g = new a();
public static class a {
String a;
String b;
String c;
String d;
}
}
private g() {
}
public static g b() {
if (b == null) {
synchronized (g.class) {
if (b == null) {
b = new g();
}
}
}
return b;
}
public void a(String str, long j, long j2) {
b bVar = this.a;
bVar.b = str;
bVar.c = String.valueOf(j);
this.a.g.a = String.valueOf(j2);
}
private void a(Context context) {
this.a.e = c.c(context);
this.a.f = c.a(context);
b.a aVar = this.a.g;
aVar.b = Build.MODEL;
aVar.c = Captcha.SDK_VERSION;
aVar.d = Build.VERSION.RELEASE;
}
private String a() {
StringBuilder sb = new StringBuilder();
sb.append("pid=");
sb.append(this.a.a);
sb.append("&bid=");
sb.append(this.a.b);
sb.append("&nts=");
sb.append(this.a.c);
sb.append("&tt=");
sb.append(this.a.d);
sb.append("&ip=");
sb.append(this.a.e);
sb.append("&dns=");
sb.append(this.a.f);
JSONObject jSONObject = new JSONObject();
jSONObject.put("tc", this.a.g.a);
jSONObject.put("m", this.a.g.b);
jSONObject.put("v", this.a.g.c);
jSONObject.put("os", this.a.g.d);
sb.append("&value=");
sb.append(URLEncoder.encode(jSONObject.toString(), "utf-8"));
return URLEncoder.encode(sb.toString(), "utf-8");
}
public void b(Context context) {
a(context);
try {
String a2 = a();
e.a("https://da.dun.163.com/sn.gif?d=" + URLEncoder.encode(a2, "utf-8"), new a(this));
} catch (Exception e) {
e.printStackTrace();
}
}
}