搜书大师 v23.2版本的 MD5 值为:5ee433f6456b6278bd6e80a5d44df55e
以下内容为反编译后的 rj0.java 源代码,内容仅作参考
package com.lygame.aaa;
import android.os.Handler;
import android.os.Message;
import com.flyersoft.baseapplication.http.base.MustParam;
import com.lygame.aaa.gi0;
import com.tencent.cos.common.COSHttpResponseKey;
import java.nio.charset.StandardCharsets;
import java.util.HashMap;
import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;
public class rj0 {
public gi0 a;
public class a implements gi0.d {
public final Message a;
public final Handler b;
public final String c;
public a(Message message, Handler handler, String str) {
this.a = message;
this.b = handler;
this.c = str;
}
@Override
public void onResponse(yi0 yi0Var) {
try {
if (yi0Var == null) {
rj0.this.b(this.a, this.b, new qg0(), 0, this.c);
} else if (yi0Var.a) {
String b = yi0Var.b();
qg0 a = al0.a(b);
if (a != null && a.a() == 0) {
rj0.this.c(this.a, this.b, new JSONObject(b).optJSONObject("data").toString(), this.c);
} else {
rj0.this.b(this.a, this.b, a, yi0Var.d, this.c);
}
} else {
rj0.this.b(this.a, this.b, new qg0(0L, yi0Var.c), yi0Var.d, this.c);
}
} catch (Exception e) {
e.printStackTrace();
}
}
}
public JSONObject a(JSONObject jSONObject, int... iArr) {
ki0 ki0Var = ki0.getInstance();
if (ki0Var.a() == null) {
return null;
}
JSONObject jSONObject2 = new JSONObject();
if (iArr != null) {
try {
if (iArr.length != 0) {
JSONArray jSONArray = new JSONArray();
for (int i : iArr) {
jSONArray.put(i);
}
jSONObject2.put("buss_id", jSONArray);
}
} catch (JSONException e) {
e.printStackTrace();
}
}
if (jSONObject != null) {
jSONObject2.put("ext", jSONObject);
}
jSONObject2.put(z0.n, al0.c(ki0Var.m()));
jSONObject2.put(MustParam.APP_NAME, al0.b(ki0Var.a()));
jSONObject2.put("user", al0.d(ki0Var.p()));
jSONObject2.put("check", ki0Var.j().a());
return jSONObject2;
}
public void b(Message message, Handler handler, qg0 qg0Var, int i, String str) {
message.arg1 = 1;
HashMap hashMap = new HashMap();
hashMap.put("responseCode", Integer.valueOf(i));
hashMap.put("msg", qg0Var.d());
hashMap.put(COSHttpResponseKey.CODE, Long.valueOf(qg0Var.a()));
hashMap.put("action_tag", str);
message.obj = hashMap;
handler.sendMessage(message);
}
public void c(Message message, Handler handler, String str, String str2) {
message.arg1 = 0;
HashMap hashMap = new HashMap();
hashMap.put(ih0.KEY_RESPONSE, str);
hashMap.put("action_tag", str2);
message.obj = hashMap;
handler.sendMessage(message);
}
public void d(yi0 yi0Var, Message message, Handler handler, String str) {
qg0 qg0Var;
int i;
String str2;
if (yi0Var != null && yi0Var.a) {
qg0 a2 = al0.a(yi0Var.b());
if (a2.a() == 0) {
try {
str2 = new JSONObject(yi0Var.b()).optString("data");
} catch (JSONException e) {
e.printStackTrace();
str2 = "";
}
c(message, handler, str2, str);
return;
}
b(message, handler, a2, yi0Var.d, str);
return;
}
if (yi0Var != null) {
i = yi0Var.d;
qg0Var = new qg0(0L, yi0Var.c);
} else {
qg0Var = new qg0();
i = 0;
}
b(message, handler, qg0Var, i, str);
}
public void e(String str, Message message, Handler handler, JSONObject jSONObject, int... iArr) {
f(str, null, message, handler, jSONObject, iArr);
}
public void f(String str, Integer num, Message message, Handler handler, JSONObject jSONObject, int... iArr) {
JSONObject a2 = a(jSONObject, iArr);
if (a2 == null) {
b(message, handler, new qg0(), 0, str);
return;
}
if (num != null) {
try {
a2.put("page", num);
} catch (JSONException e) {
e.printStackTrace();
}
}
this.a.j("http://47.105.86.145/sw/search", a2.toString().getBytes(StandardCharsets.UTF_8), null, new a(message, handler, str));
}
}