多宝语音 v1.5.0版本的 MD5 值为:dcfcdc4e4f0a662eb0256f88e60f66b1

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


package g10;

import android.content.Context;
import android.net.Uri;
import android.os.Bundle;
import android.text.TextUtils;
import com.sina.weibo.sdk.api.ImageObject;
import com.sina.weibo.sdk.api.TextObject;
import com.sina.weibo.sdk.api.WeiboMultiMessage;
import com.sina.weibo.sdk.web.WebActivity;
import com.taobao.accs.common.Constants;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import wx.b;

public final class e extends b {

    public WeiboMultiMessage f34998c;

    public String f34999d;

    public String f35000e;

    public String f35001f;

    public byte[] f35002g;

    public String f35003h;

    public e(Context context) {
        this.f34994a = context;
    }

    @Override
    public final String a() {
        Uri.Builder buildUpon = Uri.parse("https://service.weibo.com/share/mobilesdk.php").buildUpon();
        buildUpon.appendQueryParameter("title", this.f35001f);
        buildUpon.appendQueryParameter("version", "0041005000");
        String appKey = this.f34995b.f21258a.getAppKey();
        if (!TextUtils.isEmpty(appKey)) {
            buildUpon.appendQueryParameter("source", appKey);
        }
        if (!TextUtils.isEmpty(this.f34999d)) {
            buildUpon.appendQueryParameter("access_token", this.f34999d);
        }
        if (!TextUtils.isEmpty(this.f35000e)) {
            buildUpon.appendQueryParameter("packagename", this.f35000e);
        }
        if (!TextUtils.isEmpty(this.f35003h)) {
            buildUpon.appendQueryParameter("picinfo", this.f35003h);
        }
        buildUpon.appendQueryParameter("luicode", "10000360");
        buildUpon.appendQueryParameter("lfid", "OP_" + appKey);
        return buildUpon.build().toString();
    }

    @Override
    public final void b(Bundle bundle) {
        byte[] bArr;
        FileInputStream fileInputStream;
        WeiboMultiMessage weiboMultiMessage = new WeiboMultiMessage();
        this.f34998c = weiboMultiMessage;
        weiboMultiMessage.readFromBundle(bundle);
        this.f34999d = bundle.getString("token");
        this.f35000e = bundle.getString(Constants.KEY_PACKAGE_NAME);
        StringBuilder sb2 = new StringBuilder();
        TextObject textObject = this.f34998c.textObject;
        if (textObject != null) {
            sb2.append(textObject.text);
        }
        ImageObject imageObject = this.f34998c.imageObject;
        if (imageObject != null) {
            String str = imageObject.imagePath;
            if (!TextUtils.isEmpty(str)) {
                File file = new File(str);
                if (file.exists() && file.canRead() && file.length() > 0) {
                    byte[] bArr2 = new byte[(int) file.length()];
                    FileInputStream fileInputStream2 = null;
                    try {
                        try {
                            fileInputStream = new FileInputStream(file);
                        } catch (Exception e11) {
                            e = e11;
                        }
                    } catch (Throwable th2) {
                        th = th2;
                        fileInputStream = fileInputStream2;
                    }
                    try {
                        fileInputStream.read(bArr2);
                        this.f35002g = yz.e.d(bArr2);
                        try {
                            fileInputStream.close();
                        } catch (IOException e12) {
                            e12.printStackTrace();
                        }
                    } catch (Exception e13) {
                        e = e13;
                        fileInputStream2 = fileInputStream;
                        e.printStackTrace();
                        if (fileInputStream2 != null) {
                            try {
                                fileInputStream2.close();
                            } catch (IOException e14) {
                                e14.printStackTrace();
                            }
                        }
                        bArr = imageObject.imageData;
                        if (bArr != null) {
                            this.f35002g = yz.e.d(bArr);
                        }
                        this.f35001f = sb2.toString();
                    } catch (Throwable th3) {
                        th = th3;
                        if (fileInputStream != null) {
                            try {
                                fileInputStream.close();
                            } catch (IOException e15) {
                                e15.printStackTrace();
                            }
                        }
                        throw th;
                    }
                }
            }
            bArr = imageObject.imageData;
            if (bArr != null && bArr.length > 0) {
                this.f35002g = yz.e.d(bArr);
            }
        }
        this.f35001f = sb2.toString();
    }

    @Override
    public final void c(WebActivity.a aVar) {
        b.a.f48057a.a(new wx.e(this.f34994a, new String(this.f35002g), this.f34995b.f21258a.getAppKey(), this.f34999d, new d(this, aVar)));
    }

    @Override
    public final boolean d() {
        byte[] bArr = this.f35002g;
        if (bArr != null && bArr.length > 0) {
            return true;
        }
        return false;
    }
}