酷狗概念版 v2.5.5版本的 MD5 值为:782d327088fca4e58310f35a56f41319

以下内容为反编译后的 m.java 源代码,内容仅作参考


package com.kugou.android.app.home.channel.protocol;

import android.support.v4.view.InputDeviceCompat;
import c.a.a.i;
import c.t;
import com.kugou.android.app.a.a;
import com.kugou.android.app.home.channel.entity.j;
import com.kugou.android.app.home.channel.f.d;
import com.kugou.common.app.KGCommonApplication;
import com.kugou.common.config.c;
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 m {
    private static String a() {
        return "ChannelDynamic";
    }

    public static e<j> a(String str) {
        t b2 = new t.a().b(a()).a(i.a()).a(w.a(a.gt, "https://youth.kugou.com/v2/user/get_channel_dynamic")).a(c.b.a.a.a()).a().b();
        HashMap hashMap = new HashMap();
        hashMap.put("appid", Integer.valueOf(c.a().d(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("uuid", b.a().ak());
        if (com.kugou.common.environment.a.u()) {
            hashMap.put("userid", Long.valueOf(com.kugou.common.environment.a.Y()));
            hashMap.put(UpgradeManager.PARAM_TOKEN, com.kugou.common.environment.a.j());
        }
        hashMap.put("last_fid", str);
        hashMap.put("is_filter", "0");
        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 str2;
                try {
                    str2 = abVar.f();
                } catch (Exception e2) {
                    e = e2;
                    str2 = null;
                }
                try {
                    as.f("lzq-young", str2);
                    JSONObject jSONObject = new JSONObject(str2);
                    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("song_count");
                        int optInt4 = optJSONObject.optInt("is_end", 1);
                        JSONArray optJSONArray = optJSONObject.optJSONArray("list");
                        if (optJSONArray != null) {
                            for (int i = 0; i < optJSONArray.length(); i++) {
                                ContributionEntity a2 = ContributionEntity.a(optJSONArray.getJSONObject(i));
                                if (a2.f57766e != null) {
                                    a2.f57766e.bm = InputDeviceCompat.SOURCE_GAMEPAD;
                                    a2.f57766e.z("/频道/关注帖子");
                                }
                                arrayList.add(a2);
                            }
                        }
                        jVar.d(optInt3);
                        jVar.e(optInt4);
                        jVar.a(arrayList);
                        return e.a(jVar);
                    }
                    return e.a((Throwable) new d(optInt2));
                } catch (Exception e3) {
                    e = e3;
                    e.printStackTrace();
                    return e.a((Throwable) new com.kugou.android.app.home.channel.f.c(str2));
                }
            }
        });
    }
}