TIM v2.3.1版本的 MD5 值为:d6957e3ee7ce901ccc491cefdea0da8c

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


package com.tencent.mobileqq.troopreward;

import android.content.BroadcastReceiver;
import android.content.Intent;
import android.content.IntentFilter;
import android.os.Bundle;
import android.text.TextUtils;
import android.view.ViewGroup;
import android.widget.RelativeLayout;
import com.tencent.biz.ui.TouchWebView;
import com.tencent.biz.webviewbase.AbsBaseWebViewActivity;
import com.tencent.common.app.BaseApplicationImpl;
import com.tencent.mobileqq.app.SecSvcHandler;
import com.tencent.mobileqq.jsp.EventApiPlugin;
import com.tencent.mobileqq.structmsg.StructMsgConstants;
import com.tencent.mobileqq.util.Utils;
import com.tencent.mobileqq.widget.QQToast;
import com.tencent.tim.R;
import com.tencent.util.URLUtil;
import org.json.JSONException;
import org.json.JSONObject;
public class TroopRewardPayActivity extends AbsBaseWebViewActivity {
    public static final String f94317a = "http://pay.qq.com/h5sdk/proxy.shtml?payParams=%s";
    ViewGroup f33230a;
    TouchWebView f33231a;
    boolean f33232a = false;
    BroadcastReceiver f33229a = new vit(this);

    @Override
    public boolean doOnCreate(Bundle bundle) {
        super.doOnCreate(bundle);
        if (this.mSystemBarComp != null) {
            this.mSystemBarComp.a(0);
            this.mSystemBarComp.b(0);
        }
        IntentFilter intentFilter = new IntentFilter();
        intentFilter.addAction(EventApiPlugin.f24508a);
        registerReceiver(this.f33229a, intentFilter, "com.tencent.tim.msg.permission.pushnotify", null);
        this.f33230a = new RelativeLayout(this);
        this.f33230a.setLayoutParams(new RelativeLayout.LayoutParams(-1, -1));
        setContentView(this.f33230a);
        this.titleRoot.setVisibility(4);
        this.f33232a = true;
        return true;
    }

    @Override
    public void doOnResume() {
        super.doOnResume();
        if (this.mSystemBarComp != null) {
            this.mSystemBarComp.a(0);
            this.mSystemBarComp.b(0);
        }
        if (this.f33232a) {
            this.f33231a = b(this.f33230a);
            if (this.f33231a == null) {
                if (!isFinishing()) {
                    QQToast.a(BaseApplicationImpl.a(), BaseApplicationImpl.a().getResources().getString(R.string.f66752name_res_0x7f0a20a4), 1).m9833a();
                    finish();
                }
                Utils.a(getAppRuntime());
            }
            this.f33231a.setVisibility(4);
            this.f33231a.loadUrl(String.format(f94317a, URLUtil.a(a(getIntent().getStringExtra(StructMsgConstants.f29516aC), getIntent().getStringExtra("urlParams"), getIntent().getStringExtra("pf"), getIntent().getStringExtra("skey"), getIntent().getStringExtra("qun_appid")))));
            this.f33232a = false;
        }
    }

    String a(String str, String str2, String str3, String str4, String str5) {
        JSONObject jSONObject = new JSONObject();
        try {
            JSONObject jSONObject2 = new JSONObject();
            jSONObject.put("buyInfo", jSONObject2);
            jSONObject2.put("appid", str);
            jSONObject2.put("zoneid", 1);
            jSONObject2.put("pf", str3);
            jSONObject2.put("goodstokenurl", str2);
            jSONObject2.put("openid", this.f6623a.getCurrentAccountUin());
            jSONObject2.put("openkey", str4);
            JSONObject jSONObject3 = new JSONObject();
            jSONObject3.put("hide_ui", 1);
            jSONObject3.put("https", false);
            jSONObject.put(SecSvcHandler.r, jSONObject3);
            JSONObject jSONObject4 = new JSONObject();
            jSONObject4.put("from_native", 1);
            jSONObject4.put("direct_pay_channel", "qqwallet");
            StringBuilder append = new StringBuilder().append("appid#");
            if (TextUtils.isEmpty(str5)) {
                str5 = "200000021";
            }
            jSONObject4.put("mqq_appinfo", append.append(str5).append("|channel#aio").toString());
            jSONObject.put("params", jSONObject4);
        } catch (JSONException e) {
            e.printStackTrace();
        }
        return jSONObject.toString();
    }

    @Override
    public void requestWindowFeature(Intent intent) {
        requestWindowFeature(1);
    }

    @Override
    public void doOnDestroy() {
        unregisterReceiver(this.f33229a);
    }
}