导航菜单

页面标题

页面副标题

OLX India v19.42.007 - q.java 源代码

正在查看: OLX India v19.42.007 应用的 q.java JAVA 源代码文件

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


package com.payu.india.Tasks;

import android.util.Log;
import com.payu.india.Model.PayuConfig;
import com.payu.india.Model.PayuResponse;
import com.payu.india.Model.PostData;
import com.payu.india.Payu.a;
import com.payu.india.Tasks.base.PayUAsyncTask;
import com.payu.upisdk.util.UpiConstant;
import java.io.IOException;
import java.net.MalformedURLException;
import java.net.ProtocolException;
import java.net.URL;
import javax.net.ssl.HttpsURLConnection;
import org.json.JSONException;
import org.json.JSONObject;

public class q extends PayUAsyncTask {
    private final String h = getClass().getSimpleName();

    @Override
    public PayuResponse h(PayuConfig... payuConfigArr) {
        PostData postData = new PostData();
        PayuResponse payuResponse = new PayuResponse();
        try {
            PayuConfig payuConfig = payuConfigArr[0];
            int b = payuConfig.b();
            URL url = b != 0 ? b != 2 ? new URL("https://api.payu.in/") : new URL("https://sandbox.payu.in/") : new URL("https://api.payu.in/");
            HttpsURLConnection e = com.payu.india.Payu.d.e(new a.b().i(a.c.POST).l(url + "fems/sdk/v1/device-details").j(payuConfig.a()).h(com.payu.india.Payu.f.d().b("fetch_device_id")).k("application/json").g());
            if (e != null) {
                JSONObject jSONObject = new JSONObject(com.payu.india.Payu.d.o(e).toString());
                payuResponse.F0(jSONObject);
                if (jSONObject.has("status") && jSONObject.optInt("status") == 1) {
                    postData.setCode(0);
                    postData.setStatus(UpiConstant.SUCCESS);
                } else {
                    postData.setResult("Invalid GAID Request");
                    postData.setStatus("ERROR");
                }
            }
        } catch (MalformedURLException e2) {
            Log.d(this.h, " MalformedURLException" + e2.getMessage());
            postData.setCode(5022);
            postData.setStatus("ERROR");
            postData.setResult(e2.getMessage());
        } catch (ProtocolException e3) {
            Log.d(this.h, " ProtocolException " + e3.getMessage());
            postData.setCode(5016);
            postData.setStatus("ERROR");
            postData.setResult(e3.getMessage());
        } catch (IOException e4) {
            Log.d(this.h, " IOException " + e4.getMessage());
            postData.setCode(5016);
            postData.setStatus("ERROR");
            postData.setResult(e4.getMessage());
        } catch (JSONException e5) {
            Log.d(this.h, " JSONException " + e5.getMessage());
            postData.setCode(5014);
            postData.setStatus("ERROR");
            postData.setResult(e5.getMessage());
        }
        payuResponse.H0(postData);
        return payuResponse;
    }

    @Override
    public void l(PayuResponse payuResponse) {
        super.l(payuResponse);
    }
}