个人所得税申报 v1.30811.0版本的 MD5 值为:df1156760a8aea3b3af2002d05ed8068
以下内容为反编译后的 TenseCityUtil.java 源代码,内容仅作参考
package com.bafenyi.zh.bafenyilib.util;
import android.util.Log;
import cn.jiguang.union.ads.api.JUnionAdError;
import com.bafenyi.zh.bafenyilib.BFYMethodListener;
import com.bafenyi.zh.bafenyilib.config.BFYConfig;
import com.bafenyi.zh.bafenyilib.request.BFYRequest;
import com.heytap.mcssdk.constant.b;
import java.io.IOException;
import java.util.HashMap;
import java.util.Objects;
import k.a0;
import k.c0;
import k.e0;
import k.f;
import k.f0;
import k.g;
import org.json.JSONException;
import org.json.JSONObject;
public class TenseCityUtil {
public static void requestTenseCity(final String str, final String str2, final String str3, final BFYMethodListener.ITenseCityCallback iTenseCityCallback) {
new Thread(new Runnable() {
@Override
public void run() {
a0 a0Var = new a0();
HashMap hashMap = new HashMap();
hashMap.put("appId", str);
hashMap.put(b.A, str2);
hashMap.put("timeStamp", str3);
String sign = BFYRequest.getSign(hashMap);
c0.a aVar = new c0.a();
aVar.b("https://api.8fenyi.cn/rest/comm/v1/checkCity?appId=" + str + "&timeStamp=" + str3 + "&sign=" + sign);
aVar.b();
a0Var.a(aVar.a()).a(new g() {
@Override
public void onFailure(f fVar, IOException iOException) {
Log.i("tenseCity", "获取参数错误: " + iOException.getMessage());
BFYConfig.setTenseCity(true);
iTenseCityCallback.onShowResult(false, true, "", iOException.getMessage());
}
@Override
public void onResponse(f fVar, e0 e0Var) throws IOException {
String str4;
boolean z;
String k2 = ((f0) Objects.requireNonNull(e0Var.a())).k();
Log.e("tenseCity", "获取参数成功: " + k2);
if (k2.contains(JUnionAdError.Message.SUCCESS) && k2.contains("isTenseCity") && k2.contains("ipCity")) {
try {
JSONObject jSONObject = new JSONObject(new JSONObject(k2).getString("data"));
str4 = jSONObject.getString("ipCity");
try {
z = jSONObject.getBoolean("isTenseCity");
} catch (JSONException e2) {
e = e2;
e.printStackTrace();
z = true;
BFYConfig.setTenseCity(z);
iTenseCityCallback.onShowResult(true, z, str4, "");
if (z) {
return;
} else {
return;
}
}
} catch (JSONException e3) {
e = e3;
str4 = "";
}
BFYConfig.setTenseCity(z);
iTenseCityCallback.onShowResult(true, z, str4, "");
if (z || str4.contains("非敏感时间段")) {
return;
}
PreferenceUtil.put("needCityRequest", "false");
return;
}
BFYConfig.setTenseCity(true);
iTenseCityCallback.onShowResult(false, true, "", k2);
}
});
}
}).start();
}
}