OurPlay v5.5.9版本的 MD5 值为:d4e139798f4c2243a1145c8af5e21046
以下内容为反编译后的 c.java 源代码,内容仅作参考
package com.excelliance.kxqp.gs.ui.signaction;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.Build;
import com.excelliance.kxqp.gs.g.aa;
import com.excelliance.kxqp.gs.thpool.tp;
import com.excelliance.kxqp.gs.ui.signaction.b;
import com.excelliance.kxqp.gs.util.az;
import com.excelliance.kxqp.gs.util.bd;
import com.excelliance.kxqp.gs.util.bx;
import com.excelliance.kxqp.gs.util.cd;
import com.excelliance.kxqp.gs.util.cn;
import com.excelliance.kxqp.task.model.Result;
import org.json.JSONException;
import org.json.JSONObject;
public class c extends com.excelliance.kxqp.task.base.b<b.a> {
public c(Context context) {
super(context);
}
public void a() {
tp.f(new Runnable() {
@Override
public void run() {
if (c.this.c() != null) {
c.this.c().d();
}
JSONObject i = cn.i(c.this.getContext());
try {
i.put("userName", bx.a().a(c.this.getContext().getSharedPreferences("USERINFO", Build.VERSION.SDK_INT < 11 ? 0 : 4), "USER_NAME"));
} catch (JSONException e) {
az.d("SignInPresenter", "put userName fail");
e.printStackTrace();
}
az.d("SignInPresenter", "requestParams:" + i);
az.d("SignInPresenter", "encrypt requestParams:" + cn.b(i.toString()));
String a2 = bd.a("http://api.ourplay.com.cn/user/newersign", i.toString());
az.d("SignInPresenter", "encrypt response:" + a2);
String a3 = cn.a(a2);
az.d("SignInPresenter", "response :" + a3);
Result<e> a4 = a.a(a3);
if ((a4 == null || a4.getCode() != 0) && c.this.c() != null) {
az.d("SignInPresenter", "fail");
c.this.c().a("data error");
}
if (c.this.c() != null && a4 != null && a4.getCode() == 0 && a4.getData() != null) {
az.d("SignInPresenter", "on success");
int i2 = a4.getData().i;
String str = a4.getData().j;
String str2 = a4.getData().k;
int i3 = a4.getData().f11290b;
c.this.c().a((b.a) a4.getData());
if (a4.getData().f == 1 && i3 == 3 && !cd.a(str2) && !cd.a(str)) {
SharedPreferences sharedPreferences = c.this.getContext().getSharedPreferences("USERINFO", Build.VERSION.SDK_INT < 11 ? 0 : 4);
bx.a().b(sharedPreferences, "END_TIME", str);
bx.a().b(sharedPreferences, "CUR_TIME", str2);
aa.a(c.this.getContext()).a(i2);
}
}
if (c.this.c() != null) {
az.d("SignInPresenter", "on onComplete");
c.this.c().e();
}
}
});
}
}