酷狗概念版 v2.5.5版本的 MD5 值为:782d327088fca4e58310f35a56f41319
以下内容为反编译后的 bk.java 源代码,内容仅作参考
package com.kugou.android.app.home.channel.protocol;
import c.a.a.i;
import c.t;
import com.kugou.android.app.home.channel.entity.j;
import com.kugou.common.app.KGCommonApplication;
import com.kugou.common.config.c;
import com.kugou.common.environment.a;
import com.kugou.common.network.w;
import com.kugou.common.q.b;
import com.kugou.common.utils.as;
import com.kugou.common.utils.br;
import com.kugou.framework.database.contribution.entity.ContributionEntity;
import com.tencent.open.SocialOperation;
import com.tencent.stat.DeviceInfo;
import com.wandoujia.upgradesdk.UpgradeManager;
import d.ab;
import java.util.ArrayList;
import java.util.HashMap;
import org.json.JSONArray;
import org.json.JSONObject;
import rx.e;
public class bk {
private static String a() {
return "ContributionMyLikeList";
}
public static e<j> a(long j, int i) {
final boolean z = (j == 0 || j == a.Y()) ? false : true;
t b2 = new t.a().b(a()).a(i.a()).a(w.a(com.kugou.android.app.a.a.uL, "https://youth.kugou.com/api/user/v1/my_amway_list")).a(c.b.a.a.a()).a().b();
HashMap hashMap = new HashMap();
hashMap.put("appid", Integer.valueOf(c.a().d(com.kugou.android.app.a.a.lo)));
hashMap.put("clientver", Integer.valueOf(br.F(KGCommonApplication.getContext())));
hashMap.put("clienttime", Long.valueOf(br.d() / 1000));
hashMap.put(DeviceInfo.TAG_MID, br.j(KGCommonApplication.getContext()));
hashMap.put("dfid", b.a().cS());
hashMap.put("visitor", Long.valueOf(z ? j : a.Y()));
hashMap.put("userid", Long.valueOf(j));
hashMap.put("userid", Long.valueOf(a.Y()));
hashMap.put(UpgradeManager.PARAM_TOKEN, a.j());
hashMap.put("page", Integer.valueOf(i));
hashMap.put("pageSize", 10);
hashMap.put("apiver", 2);
hashMap.put(SocialOperation.GAME_SIGNATURE, w.a(w.c(hashMap)));
return ((bi) b2.a(bi.class)).a(hashMap).c(new rx.b.e<ab, e<j>>() {
@Override
public e<j> call(ab abVar) {
String str;
try {
str = abVar.f();
} catch (Exception e2) {
e = e2;
str = null;
}
try {
as.f("lzq-young", str);
JSONObject jSONObject = new JSONObject(str);
int optInt = jSONObject.optInt("status");
int optInt2 = jSONObject.optInt("error_code");
j jVar = new j();
jVar.a(optInt);
jVar.b(optInt2);
if (optInt == 1) {
ArrayList arrayList = new ArrayList();
JSONObject optJSONObject = jSONObject.optJSONObject("data");
int optInt3 = optJSONObject.optInt("list_count");
int optInt4 = optJSONObject.optInt("is_end", 1);
JSONArray optJSONArray = optJSONObject.optJSONArray("list");
if (optJSONArray != null) {
for (int i2 = 0; i2 < optJSONArray.length(); i2++) {
ContributionEntity a2 = ContributionEntity.a(optJSONArray.getJSONObject(i2));
if (a2.f57766e != null) {
a2.f57766e.bm = z ? 1029 : 1028;
a2.f57766e.z(z ? "/频道/客态个人页面" : "/频道/主态个人页面");
}
arrayList.add(a2);
}
}
jVar.d(optInt3);
jVar.e(optInt4);
jVar.a(arrayList);
return e.a(jVar);
}
return e.a(jVar);
} catch (Exception e3) {
e = e3;
e.printStackTrace();
return e.a((Throwable) new com.kugou.android.app.home.channel.f.c(str));
}
}
});
}
}