和通讯录 v3.9.6版本的 MD5 值为:669178e2ee1b2311daf378bd20c6bbe1
以下内容为反编译后的 ac.java 源代码,内容仅作参考
package com.chinamobile.contacts.im.utils;
import android.content.Context;
import android.net.Uri;
import com.chinamobile.contacts.im.data.ContactAccessor;
import com.huawei.mcs.api.McsApi;
import com.iflytek.cloud.SpeechConstant;
import org.json.JSONException;
import org.json.JSONObject;
import org.simpleframework.xml.strategy.Name;
public class ac {
public static Context f3686a;
private static ac f3687b;
private ad c;
private String d;
private ac(Context context) {
f3686a = context;
}
public static ac a(Context context) {
if (f3687b == null) {
f3687b = new ac(context);
}
return f3687b;
}
public Uri a(String str, String str2) {
String string;
String b2 = ContactAccessor.getEntity(f3686a).d() ? ContactAccessor.getEntity(f3686a).b() : null;
if (str2 != null) {
try {
string = new JSONObject(str2).getString("139mail_token");
} catch (Exception e) {
aq.a("Get139InfoUtils", e.toString());
return null;
}
} else {
string = null;
}
if (str != null) {
new JSONObject(str).getString("139mail_id");
}
StringBuilder append = new StringBuilder().append("http://wapmail.10086.cn/wapsso2?Mobile_No=");
if (b2 == null) {
b2 = "";
}
String sb = append.append(b2).append("&Flag=4").append(0 == 0 ? "" : "&Message=" + ((String) null)).append(string != null ? "&SSOID=" + string : "").toString();
aq.b("Get139InfoUtils", sb);
return Uri.parse(sb);
}
public void a() {
JSONObject jSONObject = new JSONObject();
try {
jSONObject.put("jsonrpc", McsApi.API_VERSION);
JSONObject jSONObject2 = new JSONObject();
jSONObject.put("method", "sso/139mail/token/get");
jSONObject2.put("session", ContactAccessor.getAuth(f3686a).l());
jSONObject2.put("client_id", "4");
jSONObject.put(SpeechConstant.PARAMS, jSONObject2);
jSONObject.put(Name.MARK, ApplicationUtils.generateString(2));
this.d = jSONObject.toString();
} catch (JSONException e) {
this.d = "";
}
}
public void a(String str) {
JSONObject jSONObject = new JSONObject();
try {
jSONObject.put("jsonrpc", McsApi.API_VERSION);
JSONObject jSONObject2 = new JSONObject();
jSONObject.put("method", "sso/139mail/id/get");
jSONObject2.put("session", ContactAccessor.getAuth(f3686a).l());
jSONObject2.put("port_number", str);
jSONObject2.put("client_id", "4");
jSONObject.put(SpeechConstant.PARAMS, jSONObject2);
jSONObject.put(Name.MARK, ApplicationUtils.generateString(2));
this.d = jSONObject.toString();
} catch (JSONException e) {
this.d = "";
}
}
public void a(ad adVar) {
this.c = adVar;
new ae(this, this.d).executeOnMainExecutor(new Void[0]);
}
}