OurPlay v5.5.9版本的 MD5 值为:d4e139798f4c2243a1145c8af5e21046
以下内容为反编译后的 e.java 源代码,内容仅作参考
package com.excelliance.kxqp.gs.appstore.editors;
import android.content.Context;
import android.util.Log;
import com.excelliance.kxqp.avds.AvdSplashCallBackImp;
import com.excelliance.kxqp.gs.appstore.model.AppCollectionDetail;
import com.excelliance.kxqp.gs.appstore.model.EditorChoiceItem;
import com.excelliance.kxqp.gs.appstore.model.ResponseData;
import com.excelliance.kxqp.gs.appstore.model.request.IdRequestData;
import com.excelliance.kxqp.gs.bean.AppAreaBean;
import com.excelliance.kxqp.gs.util.az;
import com.excelliance.kxqp.gs.util.bd;
import com.excelliance.kxqp.gs.util.cn;
import com.excelliance.kxqp.platforms.ExcellianceAppInfo;
import com.excelliance.kxqp.ui.InitialData;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import org.json.JSONException;
import org.json.JSONObject;
public class e {
private static volatile e f4158a;
private Context f4159b;
private Gson c = new Gson();
private String d;
public static e a(Context context) {
if (f4158a == null) {
synchronized (e.class) {
if (f4158a == null) {
f4158a = new e(context.getApplicationContext());
}
}
}
return f4158a;
}
private e(Context context) {
this.f4159b = context;
this.d = com.excelliance.kxqp.swipe.a.a.getString(this.f4159b, "server_wrong");
}
public ResponseData<List<EditorChoiceItem>> a() {
ResponseData<List<EditorChoiceItem>> responseData;
ResponseData<List<EditorChoiceItem>> responseData2 = new ResponseData<>();
responseData2.code = -1;
responseData2.msg = this.d;
String a2 = bd.a("http://api.ourplay.com.cn/gp/editor", com.alipay.sdk.data.a.g, com.alipay.sdk.data.a.g);
if (a2 == null) {
return responseData2;
}
Log.d("EditorsAppRepository", "EditorsAppRepository/getEditorChoiceList:" + a2);
try {
responseData = (ResponseData) this.c.a(a2, new TypeToken<ResponseData<List<EditorChoiceItem>>>() {
}.getType());
} catch (Exception e) {
e.printStackTrace();
Log.e("EditorsAppRepository", "EditorsAppRepository/getEditorChoiceList:" + e.toString());
responseData = null;
}
return responseData != null ? responseData : responseData2;
}
public ResponseData<AppCollectionDetail> a(String str, String str2) {
IdRequestData idRequestData;
ResponseData<AppCollectionDetail> responseData;
ResponseData<AppCollectionDetail> responseData2 = new ResponseData<>();
responseData2.code = -1;
responseData2.msg = this.d;
JSONObject i = cn.i(this.f4159b);
try {
i.put(AvdSplashCallBackImp.KEY_PRICE, 1);
i.put(AppAreaBean.AREAS, 1);
if (com.excelliance.kxqp.util.d.b.c) {
i.put("supportMulti", 1);
}
i.put("controlapi", 1);
if (com.excelliance.kxqp.gs.util.b.bh(this.f4159b)) {
i.put("isFromDomestic", "1");
}
} catch (JSONException e) {
az.d("EditorsAppRepository", e.getMessage());
e.printStackTrace();
}
try {
idRequestData = (IdRequestData) this.c.a(i.toString(), new TypeToken<IdRequestData>() {
}.getType());
} catch (Exception e2) {
e2.printStackTrace();
Log.e("EditorsAppRepository", e2.toString());
idRequestData = null;
}
if (idRequestData == null) {
idRequestData = new IdRequestData(str, str2);
} else {
idRequestData.setData(str, str2);
}
String a2 = this.c.a(idRequestData);
Log.d("EditorsAppRepository", "EditorsAppRepository/getAppDetailList:" + a2);
String a3 = bd.a("https://api.ourplay.com.cn//gp/editordetail", a2);
if (a3 != null) {
Log.d("EditorsAppRepository", "EditorsAppRepository/getAppDetailList:" + a3);
if (a3 != null) {
try {
responseData = (ResponseData) this.c.a(a3, new TypeToken<ResponseData<AppCollectionDetail>>() {
}.getType());
} catch (Exception e3) {
e3.printStackTrace();
Log.e("EditorsAppRepository", "StoreRepository/getUserData:" + e3.toString());
responseData = null;
}
if (responseData != null) {
return responseData;
}
}
}
return responseData2;
}
public Map<String, ExcellianceAppInfo> b() {
HashMap hashMap = new HashMap();
for (ExcellianceAppInfo excellianceAppInfo : InitialData.a(this.f4159b).a()) {
hashMap.put(excellianceAppInfo.getAppPackageName(), excellianceAppInfo);
}
return hashMap;
}
}