OurPlay v5.5.9版本的 MD5 值为:d4e139798f4c2243a1145c8af5e21046
以下内容为反编译后的 SubmitArticleUtils.java 源代码,内容仅作参考
package com.excelliance.kxqp.gs.discover.circle;
import a.q;
import android.content.Context;
import android.graphics.Bitmap;
import android.text.TextUtils;
import android.util.Log;
import com.excean.bytedancebi.bean.BiSendContentEvent;
import com.excelliance.kxqp.api.ApiManager;
import com.excelliance.kxqp.gs.appstore.model.ResponseData;
import com.excelliance.kxqp.gs.bean.CircleImageItem;
import com.excelliance.kxqp.gs.qiniu.a;
import com.excelliance.kxqp.gs.thpool.tp;
import com.excelliance.kxqp.gs.util.by;
import com.excelliance.kxqp.gs.util.bz;
import com.excelliance.kxqp.gs.util.k;
import com.excelliance.kxqp.util.aj;
import com.tencent.open.SocialConstants;
import java.util.List;
import org.json.JSONArray;
public class SubmitArticleUtils {
public static class BlogId {
String blogid;
}
public interface a {
void a();
void b();
}
public static void a(final List<CircleImageItem> list, final String str, final String str2, final String str3, final Context context, final a aVar, final int i) {
tp.f(new Runnable() {
@Override
public void run() {
final String c = com.excelliance.kxqp.gs.l.d.c(Integer.parseInt(str3));
bz.a().a(context, c, 170000, 4, "游戏讨论区相关-点击发布");
com.excelliance.kxqp.api.c cVar = new com.excelliance.kxqp.api.c(context);
if (list != null && list.size() > 0) {
JSONArray jSONArray = new JSONArray();
for (CircleImageItem circleImageItem : list) {
if (!TextUtils.isEmpty(circleImageItem.onlinePath)) {
jSONArray.put(circleImageItem.onlinePath);
} else if (!TextUtils.isEmpty(circleImageItem.localPath)) {
String a2 = SubmitArticleUtils.a(k.a(circleImageItem.localPath), context);
if (!TextUtils.isEmpty(a2)) {
jSONArray.put(a2);
circleImageItem.onlinePath = a2;
}
}
}
cVar.a(ApiManager.getInstance().a(context, 15000L, 15000L, "https://gapi.ourplay.com.cn/").p(new q.a().a("appid", str3).a("content", str).a("imgs", jSONArray.toString()).a("phone", str2).a(SocialConstants.PARAM_SOURCE, String.valueOf(i)).a()));
final ResponseData b2 = cVar.b();
tp.i(new Runnable() {
@Override
public void run() {
if (aVar != null) {
if (b2.code == 1) {
aVar.a();
bz.a().a(context, c, 170000, 5, "游戏讨论区相关-点击发布");
BlogId blogId = (BlogId) b2.data;
String str4 = blogId != null ? blogId.blogid : null;
BiSendContentEvent biSendContentEvent = new BiSendContentEvent();
biSendContentEvent.content_type = "动态";
biSendContentEvent.game_packagename = c;
biSendContentEvent.content_id = str4;
biSendContentEvent.set__items("content", str4);
biSendContentEvent.post_source = "讨论区";
biSendContentEvent.is_first_send = by.a(context, "sp_config").b("sp_key_first_time_send_news", true).booleanValue() ? "是" : "否";
com.excelliance.kxqp.gs.g.c.a().a(biSendContentEvent);
by.a(context, "sp_config").a("sp_key_first_time_send_news", false);
return;
}
aVar.b();
}
}
});
return;
}
cVar.a(ApiManager.getInstance().a(context, 15000L, 15000L, "https://gapi.ourplay.com.cn/").p(new q.a().a("appid", str3).a("content", str).a("imgs", "").a("phone", str2).a(SocialConstants.PARAM_SOURCE, String.valueOf(i)).a()));
final ResponseData b3 = cVar.b();
tp.i(new Runnable() {
@Override
public void run() {
if (aVar != null) {
if (b3.code == 1) {
aVar.a();
bz.a().a(context, c, 170000, 5, "游戏讨论区相关-发布成功");
Log.d("FeedbackUtils", "run: " + b3.data);
BlogId blogId = (BlogId) b3.data;
String str4 = blogId != null ? blogId.blogid : null;
BiSendContentEvent biSendContentEvent = new BiSendContentEvent();
biSendContentEvent.content_type = "动态";
biSendContentEvent.game_packagename = c;
biSendContentEvent.content_id = str4;
biSendContentEvent.post_source = "讨论区";
biSendContentEvent.is_first_send = by.a(context, "sp_config").b("sp_key_first_time_send_news", true).booleanValue() ? "是" : "否";
biSendContentEvent.set__items("content", str4);
com.excelliance.kxqp.gs.g.c.a().a(biSendContentEvent);
by.a(context, "sp_config").a("sp_key_first_time_send_news", false);
return;
}
aVar.b();
}
}
});
}
});
}
public static String a(Bitmap bitmap, Context context) {
return new a.C0324a().a(Integer.parseInt(aj.a().a(context))).a("circle").b("circle").a(bitmap).a().a(context);
}
}