亲朋打僵尸 v1.0版本的 MD5 值为:027c73d6bc1ac0a24f96eaed77a689a4
以下内容为反编译后的 MainApplication.java 源代码,内容仅作参考
package com.switfpass.pay;
import android.app.Application;
import android.content.Context;
import android.net.ConnectivityManager;
import android.net.NetworkInfo;
import com.switfpass.pay.utils.Constants;
public class MainApplication extends Application {
protected static MainApplication instance;
private static String a = "https://pay.swiftpass.cn/";
public static String BASE_URL = String.valueOf(a) + "pay/unifiedsdkpay";
public static String PAY_GATEWAY = String.valueOf(a) + "pay/gateway";
public static String PAY_UNIDFIED_MICRO = String.valueOf(a) + "pay/unifiedsdkpay";
public static String PAY_QUERY_STAUTS = String.valueOf(a) + "pay/unifiedCheck";
public static String SQ_UUID = String.valueOf(a) + "pay/qqpay?token_id=";
public static String SEDPACKURL = "http://huangjun.dev.swiftpass.cn/";
public static String QQ_SACN_TYPE = "pay.tenpay.native";
public static String WX_SACN_TYPE = "pay.weixin.native";
public static String WX_APP_TYPE = "pay.weixin.app";
public static String ZFB_SCAN_TYPE = "pay.alipay.native";
public static String ZFB_SCAN_TYPE2 = "pay.alipay.nativev2";
public static String ZFB_APP_TYPE = "pay.alipay.app";
public static String PAY_QQ_PROXY_MICROPAY = "pay.qq.proxy.micropay";
public static String PAY_QQ_MICROPAY = "pay.qq.micropay";
public static String PAY_WX_MICROPAY = "pay.weixin.micropay";
public static String PAY_ZFB_MICROPAY = "pay.alipay.micropay";
public static String PAY_QQ_WAP = "pay.tenpay.wappay";
public static String PAY_WX_WAP = "pay.weixin.wappay";
public static String PUBLIC_KEY = Constants.PUBLIC;
public static String sign = "";
public static String APP_ID = "";
public static String mchId = "";
public static String tokenId = "";
public MainApplication() {
instance = this;
}
public static MainApplication getContext() {
return instance;
}
public static boolean isNetworkOK(Context context) {
NetworkInfo activeNetworkInfo = ((ConnectivityManager) context.getSystemService("connectivity")).getActiveNetworkInfo();
if (activeNetworkInfo == null || !activeNetworkInfo.isConnectedOrConnecting()) {
return false;
}
return activeNetworkInfo != null && activeNetworkInfo.isConnected();
}
}