搜书大师 v23.2版本的 MD5 值为:5ee433f6456b6278bd6e80a5d44df55e
以下内容为反编译后的 sh0.java 源代码,内容仅作参考
package com.lygame.aaa;
import android.text.TextUtils;
import com.lygame.aaa.gi0;
import com.tencent.cos.common.COSHttpResponseKey;
import java.nio.charset.StandardCharsets;
import org.json.JSONException;
import org.json.JSONObject;
public class sh0 {
public gi0 a = new gi0();
public class a implements gi0.d {
public final rl0 a;
public a(rl0 rl0Var) {
this.a = rl0Var;
}
@Override
public void onResponse(yi0 yi0Var) {
String str;
String str2 = "";
long j = -1;
if (yi0Var.b != null) {
try {
JSONObject jSONObject = new JSONObject(new String(yi0Var.b));
j = jSONObject.optLong(COSHttpResponseKey.CODE);
str = jSONObject.optString("msg");
try {
str2 = jSONObject.optString("data");
} catch (JSONException e) {
e = e;
e.printStackTrace();
if (!yi0Var.a) {
}
if (!TextUtils.isEmpty(yi0Var.c)) {
}
JSONObject jSONObject2 = new JSONObject();
try {
jSONObject2.put("httpCode", yi0Var.d);
jSONObject2.put("errorCode", j);
jSONObject2.put("errorMsg", str);
} catch (JSONException e2) {
e2.printStackTrace();
}
vj0.c(bk0.g, null, jSONObject2.toString(), false);
this.a.onError(yi0Var.d, new qg0(j, str));
}
} catch (JSONException e3) {
e = e3;
str = "";
}
} else {
str = "";
}
if (!yi0Var.a && j == 0) {
fi0.f(str2);
vj0.c(bk0.g, null, str2, true);
this.a.onSuccess(null);
return;
}
if (!TextUtils.isEmpty(yi0Var.c)) {
str = yi0Var.c;
}
JSONObject jSONObject22 = new JSONObject();
jSONObject22.put("httpCode", yi0Var.d);
jSONObject22.put("errorCode", j);
jSONObject22.put("errorMsg", str);
vj0.c(bk0.g, null, jSONObject22.toString(), false);
this.a.onError(yi0Var.d, new qg0(j, str));
}
}
public void a(rl0 rl0Var) {
if (ki0.getInstance().q()) {
rl0Var.onSuccess(null);
} else if (ki0.t()) {
rl0Var.onError(0, new qg0());
} else {
this.a.j("http://47.105.86.145/sw/search", fi0.m().getBytes(StandardCharsets.UTF_8), null, new a(rl0Var));
}
}
}