和通讯录 v3.9.6版本的 MD5 值为:669178e2ee1b2311daf378bd20c6bbe1
以下内容为反编译后的 b.java 源代码,内容仅作参考
package com.aspire.yellowpage.f;
import android.content.Context;
import android.text.TextUtils;
import com.android.common.speech.LoggingEvents;
import com.aspire.yellowpage.utils.j;
import com.huawei.mcs.api.McsApi;
import com.huawei.mcs.cloud.msg.base.mms.Telephony;
import com.iflytek.cloud.SpeechConstant;
import java.util.Random;
import org.json.JSONException;
import org.json.JSONObject;
import org.simpleframework.xml.strategy.Name;
public class b {
private static double h = 3.141592653589793d;
private String f767b;
private a c;
private String f;
private com.aspire.yellowpage.c.a g;
private double i;
private double j;
private String d = "http://a.cytxl.com.cn/pim/jsonrpc_api.php";
private String e = "https://a.cytxl.com.cn/pim/jsonrpc_api.php";
private String f766a = com.aspire.yellowpage.utils.c.d(com.aspire.yellowpage.main.a.b());
private void a(double d, double d2) {
double d3 = d2 - 0.0065d;
double d4 = d - 0.006d;
double sqrt = Math.sqrt((d3 * d3) + (d4 * d4)) - (2.0E-5d * Math.sin(h * d4));
double atan2 = Math.atan2(d4, d3) - (Math.cos(d3 * h) * 3.0E-6d);
this.i = Math.cos(atan2) * sqrt;
this.j = Math.sin(atan2) * sqrt;
}
public b() {
this.f767b = "1";
this.f767b = new Random().nextInt() + "";
}
public String a(String str, String str2) {
JSONObject jSONObject;
JSONException e;
try {
jSONObject = new JSONObject();
} catch (JSONException e2) {
jSONObject = null;
e = e2;
}
try {
jSONObject.put("jsonrpc", McsApi.API_VERSION);
jSONObject.put("method", "yellowpage/index");
JSONObject jSONObject2 = new JSONObject();
jSONObject2.put(Telephony.BaseMmsColumns.FROM, "mcontact_hy_htxl_sdk_android");
jSONObject2.put("version", "1.0.6");
jSONObject2.put("cityId", str2);
jSONObject2.put("client_id", "4");
jSONObject2.put("device_id", this.f766a);
jSONObject2.put("loadType", str);
jSONObject.put(SpeechConstant.PARAMS, jSONObject2);
jSONObject.put(Name.MARK, this.f767b);
} catch (JSONException e3) {
e = e3;
e.printStackTrace();
this.c = new a();
this.f = this.c.a(this.d, jSONObject.toString());
if (this.f != null) {
if (!"1".equals(str)) {
}
}
return this.f;
}
this.c = new a();
this.f = this.c.a(this.d, jSONObject.toString());
if (this.f != null && this.f.length() > 120) {
if (!"1".equals(str)) {
com.aspire.yellowpage.d.a.a(com.aspire.yellowpage.main.a.b()).a("asp_yp_numbers.txt", this.f);
} else {
com.aspire.yellowpage.d.a.a(com.aspire.yellowpage.main.a.b()).a("asp_yp_index.txt", this.f);
}
}
return this.f;
}
public String a(String str, String str2, String str3, int i, int i2) {
this.g = com.aspire.yellowpage.c.a.a(com.aspire.yellowpage.main.a.b());
try {
JSONObject jSONObject = new JSONObject();
jSONObject.put("jsonrpc", McsApi.API_VERSION);
jSONObject.put("method", "yellowpage/hybrid/query");
JSONObject jSONObject2 = new JSONObject();
jSONObject2.put(Telephony.BaseMmsColumns.FROM, "mcontact_hy_htxl_sdk_android");
jSONObject2.put("version", "1.0.6");
jSONObject2.put("city", str2);
jSONObject2.put("client_id", "4");
jSONObject2.put("device_id", this.f766a);
jSONObject2.put("rowCount", "40");
jSONObject2.put("source", str3);
if (i > 0) {
jSONObject2.put("offset", i + "");
}
if (i2 > 0) {
jSONObject2.put("y_page", i2 + "");
}
a(com.aspire.yellowpage.c.a.a(com.aspire.yellowpage.main.a.b()).g(), com.aspire.yellowpage.c.a.a(com.aspire.yellowpage.main.a.b()).f());
jSONObject2.put("latitude", this.j + "");
jSONObject2.put("longitude", this.i + "");
jSONObject2.put("key", str);
jSONObject.put(SpeechConstant.PARAMS, jSONObject2);
jSONObject.put(Name.MARK, this.f767b);
this.c = new a();
this.f = this.c.a(this.d, jSONObject.toString());
com.aspire.yellowpage.d.a.a(com.aspire.yellowpage.main.a.b()).a("search.txt", this.f);
return this.f;
} catch (JSONException e) {
e.printStackTrace();
return null;
}
}
public String b(String str, String str2) {
this.g = com.aspire.yellowpage.c.a.a(com.aspire.yellowpage.main.a.b());
try {
JSONObject jSONObject = new JSONObject();
jSONObject.put("jsonrpc", McsApi.API_VERSION);
jSONObject.put("method", "yellowpage/index/query");
JSONObject jSONObject2 = new JSONObject();
jSONObject2.put(Telephony.BaseMmsColumns.FROM, "mcontact_hy_htxl_sdk_android");
jSONObject2.put("version", "1.0.6");
jSONObject2.put("city", str2);
jSONObject2.put("client_id", "4");
jSONObject2.put("device_id", this.f766a);
jSONObject2.put("rowCount", "40");
if (str2.equals(this.g.c())) {
a(com.aspire.yellowpage.c.a.a(com.aspire.yellowpage.main.a.b()).g(), com.aspire.yellowpage.c.a.a(com.aspire.yellowpage.main.a.b()).f());
jSONObject2.put("latitude", this.j + "");
jSONObject2.put("longitude", this.i + "");
}
jSONObject2.put("key", str);
jSONObject.put(SpeechConstant.PARAMS, jSONObject2);
jSONObject.put(Name.MARK, this.f767b);
this.c = new a();
this.f = this.c.a(this.d, jSONObject.toString());
return this.f;
} catch (JSONException e) {
e.printStackTrace();
return null;
}
}
public String a(String str) {
JSONObject jSONObject;
JSONException e;
try {
jSONObject = new JSONObject();
} catch (JSONException e2) {
jSONObject = null;
e = e2;
}
try {
jSONObject.put("jsonrpc", McsApi.API_VERSION);
jSONObject.put("method", "yellowpage/list");
JSONObject jSONObject2 = new JSONObject();
jSONObject2.put(Telephony.BaseMmsColumns.FROM, "mcontact_hy_htxl_sdk_android");
jSONObject2.put("version", "1.0.6");
jSONObject2.put("catalogId", str);
jSONObject2.put("cityId", LoggingEvents.VoiceSearch.EXTRA_QUERY_UPDATED_VALUE);
jSONObject2.put("client_id", "4");
jSONObject2.put("device_id", this.f766a);
jSONObject.put(SpeechConstant.PARAMS, jSONObject2);
jSONObject.put(Name.MARK, this.f767b);
} catch (JSONException e3) {
e = e3;
e.printStackTrace();
this.c = new a();
this.f = this.c.a(this.d, jSONObject.toString());
return this.f;
}
this.c = new a();
this.f = this.c.a(this.d, jSONObject.toString());
return this.f;
}
public String b(String str) {
JSONObject jSONObject;
JSONException e;
try {
jSONObject = new JSONObject();
try {
jSONObject.put("jsonrpc", McsApi.API_VERSION);
jSONObject.put("method", "yellowpage/base/cityList");
JSONObject jSONObject2 = new JSONObject();
jSONObject2.put(Telephony.BaseMmsColumns.FROM, "mcontact_hy_htxl_sdk_android");
jSONObject2.put("version", "1.0.6");
jSONObject2.put("provinceId", str);
jSONObject2.put("client_id", "4");
jSONObject2.put("device_id", this.f766a);
jSONObject.put(SpeechConstant.PARAMS, jSONObject2);
jSONObject.put(Name.MARK, this.f767b);
} catch (JSONException e2) {
e = e2;
e.printStackTrace();
this.c = new a();
this.f = this.c.a(this.d, jSONObject.toString());
return this.f;
}
} catch (JSONException e3) {
jSONObject = null;
e = e3;
}
this.c = new a();
this.f = this.c.a(this.d, jSONObject.toString());
return this.f;
}
public String a() {
JSONObject jSONObject;
JSONException e;
try {
jSONObject = new JSONObject();
} catch (JSONException e2) {
jSONObject = null;
e = e2;
}
try {
jSONObject.put("jsonrpc", McsApi.API_VERSION);
jSONObject.put("method", "yellowpage/base/provinceList");
JSONObject jSONObject2 = new JSONObject();
jSONObject2.put(Telephony.BaseMmsColumns.FROM, "mcontact_hy_htxl_sdk_android");
jSONObject2.put("version", "1.0.6");
jSONObject2.put("client_id", "4");
jSONObject2.put("device_id", this.f766a);
jSONObject.put(SpeechConstant.PARAMS, jSONObject2);
jSONObject.put(Name.MARK, this.f767b);
} catch (JSONException e3) {
e = e3;
e.printStackTrace();
this.c = new a();
this.f = this.c.a(this.d, jSONObject.toString());
com.aspire.yellowpage.d.a.a(com.aspire.yellowpage.main.a.b()).a("asp_yp_province.txt", this.f);
return this.f;
}
this.c = new a();
this.f = this.c.a(this.d, jSONObject.toString());
com.aspire.yellowpage.d.a.a(com.aspire.yellowpage.main.a.b()).a("asp_yp_province.txt", this.f);
return this.f;
}
public String c(String str) {
JSONObject jSONObject;
JSONException e;
try {
jSONObject = new JSONObject();
try {
jSONObject.put("jsonrpc", McsApi.API_VERSION);
jSONObject.put("method", "yellowpage/service/get");
JSONObject jSONObject2 = new JSONObject();
jSONObject2.put(Telephony.BaseMmsColumns.FROM, "mcontact_hy_htxl_sdk_android");
jSONObject2.put("version", "1.0.6");
jSONObject2.put("serviceId", str);
jSONObject2.put("client_id", "4");
jSONObject2.put("device_id", this.f766a);
jSONObject.put(SpeechConstant.PARAMS, jSONObject2);
jSONObject.put(Name.MARK, this.f767b);
} catch (JSONException e2) {
e = e2;
e.printStackTrace();
this.c = new a();
this.f = this.c.a(this.d, jSONObject.toString());
return this.f;
}
} catch (JSONException e3) {
jSONObject = null;
e = e3;
}
this.c = new a();
this.f = this.c.a(this.d, jSONObject.toString());
return this.f;
}
public String c(String str, String str2) {
JSONObject jSONObject;
JSONException e;
this.g = com.aspire.yellowpage.c.a.a(com.aspire.yellowpage.main.a.b());
try {
jSONObject = new JSONObject();
try {
jSONObject.put("jsonrpc", McsApi.API_VERSION);
jSONObject.put("method", "activity/getActivityList");
JSONObject jSONObject2 = new JSONObject();
jSONObject2.put(Telephony.BaseMmsColumns.FROM, "mcontact_hy_htxl_sdk_android");
jSONObject2.put("version", "1.0.6");
jSONObject2.put("from_htxl", j.a().e());
jSONObject2.put("version_htxl", j.a().d());
jSONObject2.put("client_id", "4");
jSONObject2.put("device_id", this.f766a);
if (TextUtils.isEmpty(str)) {
jSONObject2.put("activityIds", "");
} else {
jSONObject2.put("activityIds", str);
}
jSONObject2.put("status", str2);
jSONObject2.put("provname", com.aspire.yellowpage.utils.c.b(this.g.e()));
jSONObject2.put("cityname", com.aspire.yellowpage.utils.c.a(this.g.c()));
jSONObject2.put("session", j.a().c());
jSONObject.put(SpeechConstant.PARAMS, jSONObject2);
jSONObject.put(Name.MARK, this.f767b);
} catch (JSONException e2) {
e = e2;
e.printStackTrace();
this.c = new a();
this.f = this.c.a(this.d, jSONObject.toString());
if (!TextUtils.isEmpty(this.f)) {
}
return this.f;
}
} catch (JSONException e3) {
jSONObject = null;
e = e3;
}
this.c = new a();
this.f = this.c.a(this.d, jSONObject.toString());
if (!TextUtils.isEmpty(this.f)) {
com.aspire.yellowpage.d.a.a(com.aspire.yellowpage.main.a.b()).a("ads.txt", this.f);
}
return this.f;
}
public String a(String str, String str2, String str3, String str4, String str5) {
JSONObject jSONObject;
JSONObject jSONObject2;
try {
jSONObject = new JSONObject();
} catch (JSONException e) {
e = e;
jSONObject = null;
}
try {
jSONObject.put("jsonrpc", McsApi.API_VERSION);
jSONObject.put("method", "log/sendbilog");
JSONObject jSONObject3 = new JSONObject();
jSONObject3.put(Telephony.BaseMmsColumns.FROM, "mcontact_hy_htxl_sdk_android");
jSONObject3.put("version", "1.0.6");
jSONObject3.put("client_id", "4");
jSONObject3.put("device_id", str3);
jSONObject3.put("type", "yellowpage");
jSONObject3.put("signature", str2);
jSONObject3.put("imei", com.aspire.yellowpage.utils.c.a(com.aspire.yellowpage.main.a.b()));
jSONObject3.put("imsi", com.aspire.yellowpage.utils.c.b(com.aspire.yellowpage.main.a.b()));
jSONObject3.put("fieldSeperatorChar", "|");
jSONObject3.put("mobile_num", str5);
JSONObject jSONObject4 = new JSONObject();
jSONObject4.put("content", str);
jSONObject3.put("log", jSONObject4);
jSONObject.put(SpeechConstant.PARAMS, jSONObject3);
jSONObject.put(Name.MARK, str4);
jSONObject2 = jSONObject;
} catch (JSONException e2) {
e = e2;
e.printStackTrace();
jSONObject2 = jSONObject;
this.f = new c().a(this.e, jSONObject2.toString(), true);
return this.f;
}
this.f = new c().a(this.e, jSONObject2.toString(), true);
return this.f;
}
public String d(String str, String str2) {
JSONObject jSONObject;
try {
jSONObject = new JSONObject();
try {
jSONObject.put("jsonrpc", McsApi.API_VERSION);
jSONObject.put("method", "feixin/getBalance");
JSONObject jSONObject2 = new JSONObject();
jSONObject2.put(Telephony.BaseMmsColumns.FROM, "mcontact_hy_htxl_sdk_android");
jSONObject2.put("version", "1.0.6");
jSONObject2.put("client_id", "4");
jSONObject2.put("mobile", str);
jSONObject2.put("device_id", this.f766a);
jSONObject2.put("sign", str2);
jSONObject.put(SpeechConstant.PARAMS, jSONObject2);
jSONObject.put(Name.MARK, this.f767b);
} catch (JSONException e) {
e = e;
e.printStackTrace();
this.f = new c().a(this.e, jSONObject.toString(), true);
return this.f;
}
} catch (JSONException e2) {
e = e2;
jSONObject = null;
}
try {
this.f = new c().a(this.e, jSONObject.toString(), true);
} catch (Exception e3) {
e3.printStackTrace();
}
return this.f;
}
public String e(String str, String str2) {
JSONObject jSONObject;
try {
jSONObject = new JSONObject();
try {
jSONObject.put("jsonrpc", McsApi.API_VERSION);
jSONObject.put("method", "feixin/getFlow");
JSONObject jSONObject2 = new JSONObject();
jSONObject2.put(Telephony.BaseMmsColumns.FROM, "mcontact_hy_htxl_sdk_android");
jSONObject2.put("version", "1.0.6");
jSONObject2.put("client_id", "4");
jSONObject2.put("mobile", str);
jSONObject2.put("device_id", this.f766a);
jSONObject2.put("sign", str2);
jSONObject.put(SpeechConstant.PARAMS, jSONObject2);
jSONObject.put(Name.MARK, this.f767b);
} catch (JSONException e) {
e = e;
e.printStackTrace();
this.f = new c().a(this.e, jSONObject.toString(), true);
return this.f;
}
} catch (JSONException e2) {
e = e2;
jSONObject = null;
}
try {
this.f = new c().a(this.e, jSONObject.toString(), true);
} catch (Exception e3) {
e3.printStackTrace();
}
return this.f;
}
public boolean a(Context context) {
JSONObject jSONObject = new JSONObject();
JSONObject jSONObject2 = new JSONObject();
try {
jSONObject2.put("endpointId", this.f766a);
jSONObject2.put("endpointType", "yellowpage");
jSONObject2.put("mac", com.aspire.yellowpage.utils.c.c(context));
jSONObject2.put("channelId", "mcontact_hy_htxl_sdk_android");
jSONObject2.put("producer", com.aspire.yellowpage.utils.c.a());
jSONObject2.put("model", com.aspire.yellowpage.utils.c.c());
jSONObject2.put("version", "1.0.6");
jSONObject2.put("os_version", com.aspire.yellowpage.utils.c.b());
jSONObject2.put("imei", com.aspire.yellowpage.utils.c.a(context));
jSONObject2.put("client_id", "4");
jSONObject2.put("imsi", com.aspire.yellowpage.utils.c.b(context));
jSONObject.put(Name.MARK, this.f767b);
jSONObject.put("jsonrpc", McsApi.API_VERSION);
jSONObject.put(SpeechConstant.PARAMS, jSONObject2);
jSONObject.put("method", "device/general/reg");
try {
this.f = new c().a(this.e, jSONObject.toString(), true);
} catch (Exception e) {
e.printStackTrace();
}
if (TextUtils.isEmpty(this.f) || this.f.contains(Telephony.ThreadsColumns.ERROR)) {
return false;
}
return "1".equals(new JSONObject(this.f).optString("result", ""));
} catch (JSONException e2) {
e2.printStackTrace();
return false;
}
}
public String a(String str, String str2, String str3, String str4, String str5, String str6, String str7) {
StringBuilder sb = new StringBuilder();
sb.append("from=").append("mcontact_hy_htxl_sdk_android");
sb.append("&version=").append("1.0.6");
sb.append("&client_id=").append("4");
sb.append("&endpointId=").append(this.f766a);
sb.append("&action=").append(str7);
sb.append("&api=").append(str6);
sb.append("&type=").append(str2);
sb.append("&ypOrderId=").append(str5);
sb.append("&tk=").append(str4);
sb.append("&crumb=").append(str3);
this.c = new a();
this.f = this.c.a(str, sb.toString(), false);
return this.f;
}
}