搜书大师 v23.2版本的 MD5 值为:5ee433f6456b6278bd6e80a5d44df55e
以下内容为反编译后的 yh0.java 源代码,内容仅作参考
package com.lygame.aaa;
import android.content.Context;
import android.os.Handler;
import android.os.Message;
import com.lygame.aaa.gi0;
import com.lygame.aaa.jg0;
import java.nio.charset.StandardCharsets;
import java.util.HashMap;
public class yh0 extends jl0 {
public static final int a = 1;
public gi0 b;
public ki0 c;
public class a implements gi0.d {
public final String a;
public final Handler b;
public final wg0 c;
public a(String str, Handler handler, wg0 wg0Var) {
this.a = str;
this.b = handler;
this.c = wg0Var;
}
@Override
public void onResponse(yi0 yi0Var) {
fi0.g(this.a, yi0Var, this.b, this.c);
}
}
public class b implements gi0.d {
public final gh0 a;
public final Handler b;
public final wg0 c;
public b(gh0 gh0Var, Handler handler, wg0 wg0Var) {
this.a = gh0Var;
this.b = handler;
this.c = wg0Var;
}
@Override
public void onResponse(yi0 yi0Var) {
fi0.e(this.a, yi0Var, this.b, this.c);
}
}
public yh0(Context context, String str, Handler handler) {
ki0.b(context, str);
this.c = ki0.getInstance();
this.b = new gi0();
Message obtain = Message.obtain();
obtain.what = 1;
if (ki0.r() == 0) {
a(handler, obtain);
return;
}
HashMap hashMap = new HashMap();
hashMap.put("isSuccess", Boolean.TRUE);
obtain.obj = hashMap;
handler.sendMessage(obtain);
}
@Override
public void a(Handler handler, Message message) {
String m = fi0.m();
wg0 b2 = xf0.b(message);
if (m == null) {
Message a2 = xf0.a(b2);
((HashMap) a2.obj).put("isSuccess", Boolean.FALSE);
handler.sendMessage(a2);
return;
}
this.b.j("http://47.105.86.145/sw/search", m.getBytes(StandardCharsets.UTF_8), null, new a(m, handler, b2));
}
@Override
public void b(Handler handler, Message message) {
gh0 b2 = fi0.b(message);
wg0 b3 = xf0.b(message);
if (b2 == null) {
Message a2 = xf0.a(b3);
((HashMap) a2.obj).put("isSuccess", Boolean.FALSE);
handler.sendMessage(a2);
} else {
this.b.j(jg0.a.c, fi0.c(b2).getBytes(StandardCharsets.UTF_8), null, new b(b2, handler, b3));
}
}
public String c() {
if (this.c.p() == null) {
return null;
}
return this.c.p().m();
}
}