调研通 v3.0.3版本的 MD5 值为:fe075d21227d488bdb9f6aa09d3b3f35

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


package com.iflytek.sunflower.task;

import android.content.Context;
import android.content.SharedPreferences;
import com.iflytek.sunflower.OnlineConfigListener;
import org.json.JSONObject;

public class a extends e {

    private Context f6996b;

    public a(Context context, OnlineConfigListener onlineConfigListener) {
        super(context, onlineConfigListener);
        this.f6996b = context;
    }

    private JSONObject b() {
        com.iflytek.sunflower.c.a.a(new com.iflytek.sunflower.c.f(), this.f6996b);
        JSONObject jSONObject = new JSONObject();
        try {
            jSONObject.put("type", "app_list");
            jSONObject.put("appid", com.iflytek.sunflower.c.e.f(this.f6996b));
            jSONObject.put("pver", "2");
            com.iflytek.sunflower.c.g.e("Collector", jSONObject.toString());
            return jSONObject;
        } catch (Exception unused) {
            com.iflytek.sunflower.c.g.f("Collector", "exception occur while upload app list");
            return null;
        }
    }

    @Override
    public void a() {
        super.a();
        try {
            JSONObject b2 = b();
            if (com.iflytek.sunflower.c.h.a(this.f6996b)) {
                byte[] a2 = com.iflytek.sunflower.c.c.a(b2.toString().getBytes("utf-8"));
                com.iflytek.sunflower.b.a aVar = new com.iflytek.sunflower.b.a();
                aVar.b(c.a.f.c.a.f157f);
                aVar.a(1);
                aVar.a("http://data.openspeech.cn/index.php/clientrequest/clientcollect/isCollect", "", a2);
                aVar.b(this.f7005a);
            } else {
                com.iflytek.sunflower.c.g.f("Collector", "upload app list error, please check net state");
            }
        } catch (Exception unused) {
            com.iflytek.sunflower.c.g.f("Collector", "exception occur while upload app list");
        }
    }

    @Override
    public void a(JSONObject jSONObject) {
        super.a(jSONObject);
        com.iflytek.sunflower.c.g.e("Collector", "get app list config result: " + jSONObject.toString());
        Long valueOf = Long.valueOf((long) (Float.parseFloat(jSONObject.optString(com.iflytek.sunflower.config.b.q)) * 3600.0f));
        Long valueOf2 = Long.valueOf((long) (Float.parseFloat(jSONObject.optString(com.iflytek.sunflower.config.b.s)) * 3600.0f));
        Long valueOf3 = Long.valueOf((long) (Float.parseFloat(jSONObject.optString(com.iflytek.sunflower.config.b.u)) * 3600.0f));
        Boolean bool = Boolean.FALSE;
        if ("yes".equalsIgnoreCase(jSONObject.optString(com.iflytek.sunflower.config.b.w))) {
            bool = Boolean.TRUE;
        }
        SharedPreferences.Editor edit = com.iflytek.sunflower.d.a(this.f6996b).edit();
        edit.putLong(com.iflytek.sunflower.config.b.q, valueOf.longValue());
        edit.putLong(com.iflytek.sunflower.config.b.s, valueOf2.longValue());
        edit.putLong(com.iflytek.sunflower.config.b.u, valueOf3.longValue());
        edit.putBoolean(com.iflytek.sunflower.config.b.w, bool.booleanValue());
        edit.commit();
    }
}