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

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


package com.kugou.android.musiccircle.e;

import android.text.TextUtils;
import com.kugou.android.app.KGApplication;
import com.kugou.android.musiccircle.bean.DynamicEntity;
import com.kugou.common.utils.as;
import com.kugou.common.utils.ba;
import com.kugou.common.utils.br;
import com.kugou.common.utils.bz;
import com.sina.weibo.sdk.auth.Oauth2AccessToken;
import com.tencent.connect.common.Constants;
import com.tencent.stat.DeviceInfo;
import com.wandoujia.upgradesdk.UpgradeManager;
import java.util.HashMap;
import org.json.JSONException;
import org.json.JSONObject;

public class z {
    public DynamicEntity a(long j, String str, long j2, String str2, long j3, int i) {
        String str3;
        JSONObject optJSONObject;
        JSONObject optJSONObject2;
        HashMap hashMap = new HashMap();
        hashMap.put(Oauth2AccessToken.KEY_UID, Long.valueOf(com.kugou.common.environment.a.h().f54229a));
        hashMap.put(DeviceInfo.TAG_MID, br.j(KGApplication.getContext()));
        hashMap.put(UpgradeManager.PARAM_TOKEN, com.kugou.common.environment.a.h().f54230b);
        int F = br.F(KGApplication.getContext());
        hashMap.put("clientver", Integer.valueOf(F));
        long currentTimeMillis = System.currentTimeMillis() / 1000;
        hashMap.put("clienttime", Long.valueOf(currentTimeMillis));
        hashMap.put("appid", Long.valueOf(br.as()));
        hashMap.put("key", ba.c(br.a(Long.valueOf(br.as()), com.kugou.common.config.c.a().b(com.kugou.android.app.a.a.lp), Integer.valueOf(F), Long.valueOf(currentTimeMillis))));
        hashMap.put(DeviceInfo.TAG_VERSION, 6);
        hashMap.put("area_code", 1);
        hashMap.put("module", "musiccircl");
        try {
            JSONObject jSONObject = new JSONObject();
            jSONObject.put(Oauth2AccessToken.KEY_UID, j);
            jSONObject.put("hash", str);
            jSONObject.put("bid", j2);
            jSONObject.put("s", str2);
            jSONObject.put("time", j3);
            jSONObject.put("dt", i);
            hashMap.put("info", bz.a(jSONObject.toString()));
        } catch (JSONException unused) {
        }
        com.kugou.android.share.countersign.d.j jVar = new com.kugou.android.share.countersign.d.j(hashMap, Constants.HTTP_GET, "http://musichubservice.kugou.com/v3/one");
        try {
            com.kugou.common.network.f.d().a(jVar, jVar);
            str3 = jVar.a();
        } catch (Exception e2) {
            as.b("log.test", e2.getMessage());
            str3 = null;
        }
        if (!TextUtils.isEmpty(str3)) {
            try {
                JSONObject jSONObject2 = new JSONObject(str3);
                if (jSONObject2.optInt("status") == 1 && (optJSONObject = jSONObject2.optJSONObject("data")) != null && (optJSONObject2 = optJSONObject.optJSONObject("one")) != null) {
                    DynamicEntity dynamicEntity = new DynamicEntity();
                    com.kugou.android.app.common.comment.protocol.o.i(dynamicEntity, optJSONObject2);
                    dynamicEntity.f5164a = dynamicEntity.chash;
                    return dynamicEntity;
                }
            } catch (JSONException unused2) {
            }
        }
        return null;
    }
}