밤친구 v4.7.3版本的 MD5 值为:a58175795b36d9d722726efa7eb4c52a
以下内容为反编译后的 f.java 源代码,内容仅作参考
package ae;
import android.content.Context;
import android.os.Build;
import android.os.SystemClock;
import com.bumptech.glide.load.Key;
import com.meizu.cloud.pushsdk.constants.PushConstants;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.util.HashMap;
public final class f {
public static f f654a;
public static synchronized f a() {
f fVar;
synchronized (f.class) {
if (f654a == null) {
f654a = new f();
}
fVar = f654a;
}
return fVar;
}
public static void b(int i, String str, String str2, String str3, Long l2, String str4) {
long elapsedRealtime = SystemClock.elapsedRealtime() - l2.longValue();
if (l2.longValue() == 0 || elapsedRealtime < 0) {
elapsedRealtime = 0;
}
StringBuffer stringBuffer = new StringBuffer("https://huatuocode.huatuo.qq.com?domain=mobile.opensdk.com&cgi=opensdk&type=");
stringBuffer.append(i);
stringBuffer.append("&code=0&time=");
stringBuffer.append(elapsedRealtime);
stringBuffer.append("&rate=1&uin=1000&data=");
String valueOf = String.valueOf(i);
String valueOf2 = String.valueOf(0);
String valueOf3 = String.valueOf(elapsedRealtime);
String valueOf4 = String.valueOf(1);
HashMap hashMap = new HashMap();
hashMap.put("platform", PushConstants.PUSH_TYPE_THROUGH_MESSAGE);
hashMap.put("result", valueOf);
hashMap.put(PushConstants.BASIC_PUSH_STATUS_CODE, valueOf2);
hashMap.put("tmcost", valueOf3);
hashMap.put("rate", valueOf4);
hashMap.put("cmd", str);
hashMap.put("uin", "1000");
hashMap.put("appid", str2);
hashMap.put("share_type", str3);
hashMap.put("detail", str4);
hashMap.put("os_ver", Build.VERSION.RELEASE);
Context context = ce.g.f3590a;
Context context2 = null;
if (context == null) {
context = null;
}
hashMap.put("network", a.a(context));
hashMap.put("apn", "");
hashMap.put("model_name", Build.MODEL);
hashMap.put("sdk_ver", "3.5.3.lite");
hashMap.put("packagename", ce.g.a());
Context context3 = ce.g.f3590a;
if (context3 == null) {
context3 = null;
}
hashMap.put("app_ver", ce.l.r(context3, ce.g.a()));
try {
stringBuffer.append(URLEncoder.encode(ce.b.c(hashMap), Key.STRING_CHARSET_NAME));
h b10 = h.b();
String stringBuffer2 = stringBuffer.toString();
b10.getClass();
Context context4 = ce.g.f3590a;
if (context4 != null) {
context2 = context4;
}
if (ce.l.n(context2)) {
ce.k.a(new l(stringBuffer2));
}
} catch (UnsupportedEncodingException e10) {
be.a.d("openSDK_LOG.OpenSdkStatic", "reportHaboCgi exception.", e10);
}
}
public static void c(String str, String str2, String str3) {
h.b().c(ce.l.c(str, PushConstants.PUSH_TYPE_THROUGH_MESSAGE, "7", "2", str2, str3, "", "", "", "", "", ""), str2, true);
}
public static void d(String str, String str2, String str3, String str4) {
h.b().c(ce.l.c(str, PushConstants.PUSH_TYPE_THROUGH_MESSAGE, str3, "2", str2, str4, "", PushConstants.PUSH_TYPE_NOTIFY, PushConstants.PUSH_TYPE_NOTIFY, "", "", ""), str2, false);
}
public static void e(String str, String str2, String str3, String str4, String str5, String str6, String str7) {
h.b().c(ce.l.c(str, str4, "3", str3, str2, str5, str6, "", "", PushConstants.PUSH_TYPE_NOTIFY, str7, PushConstants.PUSH_TYPE_NOTIFY), str2, false);
}
}