导航菜单

页面标题

页面副标题

95爱播免登录版 v3.1.9 - WXPayEntryActivity.java 源代码

正在查看: 95爱播免登录版 v3.1.9 应用的 WXPayEntryActivity.java JAVA 源代码文件

本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。


package com.mifeng.ui.wxapi;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import com.mifeng.ui.R;
import com.r.n.d;
import com.r.n.e;
import com.r.n.g;
import com.showself.ui.ShowSelfApp;
import com.showself.utils.Utils;
import com.showself.utils.c1.a;
import com.tencent.mm.opensdk.modelbase.BaseReq;
import com.tencent.mm.opensdk.modelbase.BaseResp;
import com.tencent.mm.opensdk.openapi.IWXAPI;
import com.tencent.mm.opensdk.openapi.IWXAPIEventHandler;
import com.tencent.mm.opensdk.openapi.WXAPIFactory;
import org.greenrobot.eventbus.c;

public class WXPayEntryActivity extends Activity implements IWXAPIEventHandler {
    private IWXAPI a;

    @Override
    public void onCreate(Bundle bundle) {
        super.onCreate(bundle);
        setContentView(R.layout.pay_result);
        if (getIntent() == null) {
            finish();
            return;
        }
        IWXAPI createWXAPI = WXAPIFactory.createWXAPI(this, "wx9914ffed42c83e61");
        this.a = createWXAPI;
        createWXAPI.handleIntent(getIntent(), this);
    }

    @Override
    protected void onNewIntent(Intent intent) {
        super.onNewIntent(intent);
        setIntent(intent);
        this.a.handleIntent(intent, this);
    }

    @Override
    public void onReq(BaseReq baseReq) {
    }

    @Override
    public void onResp(BaseResp baseResp) {
        String str = "onPayFinish, errCode = " + baseResp.errCode;
        if (baseResp.getType() == 5) {
            if (baseResp.errCode == 0) {
                c.c().k(new a());
                ShowSelfApp.h().w(true);
                Utils.Z0(this, "正在处理,请稍后...");
            } else {
                Utils.Z0(this, "支付失败");
                g j2 = g.j();
                d c = d.c();
                c.e("Bank");
                c.f("ChargeHome");
                c.d("CancelCharge");
                c.h(e.Click);
                j2.u(c.b());
            }
        }
        finish();
    }
}