QQ浏览器 v12.2.3.7053版本的 MD5 值为:8285ab3059e5c8b521a264dfbc5c3685

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


package com.tencent.mtt.external.publisher;

import android.os.Bundle;
import com.dike.lib.apkmarker.Apk;
import com.tencent.mtt.R;
import com.tencent.mtt.browser.file.facade.IFileStatService;
import com.tencent.mtt.browser.window.UrlParams;
import com.tencent.mtt.businesscenter.facade.IFrameworkDelegate;
import com.tencent.mtt.external.circle.facade.ICircleService;
import com.tencent.mtt.external.circle.publisher.CirclePublisherActivity;
import com.tencent.mtt.external.publisher.PublisherEventHub;
import com.tencent.mtt.qbcontext.core.QBContext;
import com.tencent.mtt.view.toast.MttToaster;
import com.tencent.qqlive.module.videoreport.dtreport.constants.DTConstants;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
import java.util.Map;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

public class HippyCirclePublisher {
    public void a(int i, String str, String str2, String str3, ArrayList<Integer> arrayList, HashMap<String, String> hashMap, String str4, ICircleService.OpenCPCallback openCPCallback) {
        if (PublisherEventHub.a()) {
            MttToaster.show(R.string.ve, 0);
            return;
        }
        Bundle bundle = new Bundle();
        JSONObject jSONObject = new JSONObject();
        try {
            jSONObject.put("type", i);
            jSONObject.put("circleId", str);
            jSONObject.put("postId", str2);
            jSONObject.put(Apk.IEditor.KEY_CHANNEL, str3);
            JSONArray jSONArray = new JSONArray();
            Iterator<Integer> it = arrayList.iterator();
            while (it.hasNext()) {
                jSONArray.put(it.next().intValue());
            }
            jSONObject.put("subPublishType", jSONArray);
            JSONObject jSONObject2 = new JSONObject();
            for (Map.Entry<String, String> entry : hashMap.entrySet()) {
                jSONObject2.put(entry.getKey(), entry.getValue());
            }
            jSONObject.put(IFileStatService.EVENT_REPORT_EXT, jSONObject2);
            jSONObject.put("callbackFun", str4);
        } catch (JSONException unused) {
        }
        bundle.putString("props", jSONObject.toString());
        String str5 = "post";
        if (i == 2) {
            str5 = "mix";
        } else if (i == 3 && (arrayList.contains(5) || !arrayList.contains(2))) {
            str5 = DTConstants.TAG.VIDEO;
        }
        bundle.putString("backUrl", "https://quan.qq.com/react/publish?mode=" + str5 + "&circleId=" + str);
        int hashCode = openCPCallback.hashCode();
        bundle.putString("funHashCode", String.valueOf(hashCode));
        PublisherEventHub.CirclePublisherEventHub.a(hashCode, openCPCallback);
        ((IFrameworkDelegate) QBContext.getInstance().getService(IFrameworkDelegate.class)).doLoad(new UrlParams("qb://lightwindow/reactpublisher").d(1).a(bundle).a(CirclePublisherActivity.class));
    }
}