OurPlay v5.5.9版本的 MD5 值为:d4e139798f4c2243a1145c8af5e21046
以下内容为反编译后的 e.java 源代码,内容仅作参考
package com.excelliance.kxqp.gs.ui.astore;
import android.content.Context;
import android.text.TextUtils;
import com.android.spush.util.WebActionRouter;
import com.excelliance.kxqp.bitmap.bean.RankingItem;
import com.excelliance.kxqp.gs.discover.model.ResponseData;
import com.excelliance.kxqp.gs.ui.astore.c;
import com.excelliance.kxqp.gs.util.az;
import com.excelliance.kxqp.gs.util.cn;
import com.excelliance.kxqp.gs.util.w;
import java.util.ArrayList;
import java.util.List;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
public class e {
public static ResponseData<List<c.d>> a(final Context context, int i) {
com.excelliance.kxqp.gs.discover.bbs.c cVar = new com.excelliance.kxqp.gs.discover.bbs.c(context);
JSONObject i2 = cn.i(context);
try {
i2.put("page", i);
i2.put("branch", com.excelliance.kxqp.gs.util.b.a(context));
i2.put("controlapi", "1");
if (com.excelliance.kxqp.gs.util.b.bh(context)) {
i2.put("isFromDomestic", "1");
}
} catch (JSONException e) {
e.printStackTrace();
}
return cVar.a(i2.toString(), "https://api.ourplay.com.cn/goneload/homecorrectlist", new com.excelliance.kxqp.gs.discover.a.c<List<c.d>>() {
@Override
public ResponseData<List<c.d>> a(String str) {
try {
ResponseData<List<c.d>> responseData = new ResponseData<>();
responseData.code = 1;
responseData.msg = "server error";
JSONObject jSONObject = new JSONObject(str);
int optInt = jSONObject.optInt("code");
String optString = jSONObject.optString("msg");
responseData.code = optInt;
responseData.msg = optString;
JSONArray optJSONArray = jSONObject.optJSONArray("data");
if (optJSONArray != null && optJSONArray.length() != 0) {
?? arrayList = new ArrayList();
responseData.data = arrayList;
for (int i3 = 0; i3 < optJSONArray.length(); i3++) {
JSONObject jSONObject2 = optJSONArray.getJSONObject(i3);
c.d dVar = new c.d();
dVar.f8765b = jSONObject2.optString("id");
dVar.h = jSONObject2.optString("type");
dVar.f = jSONObject2.optString(RankingItem.KEY_VER);
try {
dVar.g = w.c(context, c.f8760a.get(dVar.h));
} catch (Exception e2) {
az.d("StoreRepository", "ex:" + e2.getMessage());
}
dVar.f8764a = jSONObject2.optString("title");
dVar.c = jSONObject2.optString("idtype");
dVar.d = new ArrayList();
JSONArray optJSONArray2 = jSONObject2.optJSONArray("list");
if (optJSONArray2 != null && optJSONArray2.length() != 0) {
for (int i4 = 0; i4 < optJSONArray2.length(); i4++) {
JSONObject jSONObject3 = optJSONArray2.getJSONObject(i4);
c.a aVar = new c.a();
aVar.c = jSONObject3.optString("desc");
aVar.f8763b = jSONObject3.optString(RankingItem.KEY_ICON);
aVar.e = jSONObject3.optString("id");
aVar.f8762a = jSONObject3.optString("name");
aVar.d = jSONObject3.optString(WebActionRouter.KEY_PKG);
aVar.f = dVar.f;
try {
String str2 = c.f8761b.get(dVar.h);
if (!TextUtils.isEmpty(str2)) {
aVar.g = w.c(context, str2);
}
} catch (Exception e3) {
az.d("StoreRepository", "ex:" + e3.getMessage());
}
dVar.d.add(aVar);
}
arrayList.add(dVar);
}
}
return responseData;
}
return responseData;
} catch (JSONException e4) {
az.d("StoreRepository", "getStoreAppList/Exception: " + e4.getMessage());
return null;
}
}
});
}
public static ResponseData<List<c.a>> a(final Context context, String str, String str2, int i, final String str3, String str4) {
com.excelliance.kxqp.gs.discover.bbs.c cVar = new com.excelliance.kxqp.gs.discover.bbs.c(context);
JSONObject i2 = cn.i(context);
try {
i2.put("id", str);
i2.put("idtype", str2);
i2.put("page", i);
i2.put(RankingItem.KEY_VER, str4);
i2.put("pageSize", 5);
i2.put("branch", com.excelliance.kxqp.gs.util.b.a(context));
i2.put("controlapi", 1);
if (com.excelliance.kxqp.gs.util.b.bh(context)) {
i2.put("isFromDomestic", "1");
}
} catch (JSONException e) {
e.printStackTrace();
}
return cVar.a(i2.toString(), "https://api.ourplay.com.cn/goneload/homegetmore", new com.excelliance.kxqp.gs.discover.a.c<List<c.a>>() {
@Override
public ResponseData<List<c.a>> a(String str5) {
int c = w.c(context, c.f8761b.get(str3));
try {
ResponseData<List<c.a>> responseData = new ResponseData<>();
responseData.code = 1;
responseData.msg = "server error";
JSONObject jSONObject = new JSONObject(str5);
int optInt = jSONObject.optInt("code");
String optString = jSONObject.optString("msg");
responseData.code = optInt;
responseData.msg = optString;
responseData.data = new ArrayList();
JSONArray optJSONArray = jSONObject.optJSONArray("data");
if (optJSONArray != null && optJSONArray.length() != 0) {
for (int i3 = 0; i3 < optJSONArray.length(); i3++) {
JSONObject jSONObject2 = optJSONArray.getJSONObject(i3);
c.a aVar = new c.a();
aVar.c = jSONObject2.optString("desc");
aVar.f8763b = jSONObject2.optString(RankingItem.KEY_ICON);
aVar.e = jSONObject2.optString("id");
aVar.f8762a = jSONObject2.optString("name");
aVar.d = jSONObject2.optString(WebActionRouter.KEY_PKG);
aVar.g = c;
responseData.data.add(aVar);
az.d("StoreRepository", "appModel: " + aVar + " layoutStyle:" + str3);
}
return responseData;
}
return responseData;
} catch (JSONException e2) {
az.d("StoreRepository", "getStoreAppList/Exception: " + e2.getMessage());
return null;
}
}
});
}
}