亲朋打僵尸 v1.0版本的 MD5 值为:027c73d6bc1ac0a24f96eaed77a689a4

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


package com.switfpass.pay.activity;

import android.app.ProgressDialog;
import android.os.AsyncTask;
import android.util.Log;
import android.widget.Toast;
import com.switfpass.pay.MainApplication;
import com.switfpass.pay.bean.RequestMsg;
import com.switfpass.pay.service.GetPrepayIdResult;
import com.switfpass.pay.utils.Util;
import com.switfpass.pay.utils.XmlUtils;
import java.util.Map;
public final class AsyncTaskC0022e extends AsyncTask {
    private PayPlugin l;
    private ProgressDialog n;

    public AsyncTaskC0022e(PayPlugin payPlugin) {
        this.l = payPlugin;
    }

    public AsyncTaskC0022e(PayPlugin payPlugin, byte b) {
        this.l = payPlugin;
    }

    private Map c() {
        String a = PayPlugin.a(this.l);
        Log.d("PayPlugin", "doInBackground, url = http://huangjun.dev.swiftpass.cn/pay/gateway");
        Log.d("PayPlugin", "doInBackground, entity = " + a);
        GetPrepayIdResult getPrepayIdResult = new GetPrepayIdResult();
        byte[] httpPost = Util.httpPost("http://huangjun.dev.swiftpass.cn/pay/gateway", a);
        if (httpPost == null || httpPost.length == 0) {
            return null;
        }
        String str = new String(httpPost);
        Log.d("PayPlugin", "doInBackground, content = " + str);
        getPrepayIdResult.parseFrom(str);
        try {
            return XmlUtils.parse(str);
        } catch (XmlUtils.ParseException e) {
            e.printStackTrace();
            return null;
        }
    }

    @Override
    protected final Object doInBackground(Object... objArr) {
        return c();
    }

    @Override
    protected final void onCancelled() {
        super.onCancelled();
    }

    @Override
    protected final void onPostExecute(Object obj) {
        Map map = (Map) obj;
        if (this.n != null) {
            this.n.dismiss();
        }
        if (map == null || !((String) map.get(com.alipay.sdk.cons.c.a)).equals("0")) {
            Toast.makeText(this.l, this.l.getString(com.switfpass.pay.R.string.get_prepayid_fail), 1).show();
            return;
        }
        Toast.makeText(this.l, com.switfpass.pay.R.string.get_prepayid_succ, 1).show();
        RequestMsg requestMsg = new RequestMsg();
        requestMsg.setTokenId((String) map.get("token_id"));
        requestMsg.setServerType((String) map.get("services"));
        requestMsg.setAppId("wx2a5538052969956e");
        requestMsg.setMoney(1.0d);
        requestMsg.setTradeType(MainApplication.WX_APP_TYPE);
        PayPlugin.unifiedAppPay(this.l, requestMsg);
    }

    @Override
    protected final void onPreExecute() {
        this.n = ProgressDialog.show(this.l, "", this.l.getString(com.switfpass.pay.R.string.getting_prepayid));
    }
}