Check text to get comment actions

This commit is contained in:
seven332 committed 2019-05-07 21:00:07 +08:00
1 parent efe7d4757a
commit bd7c806ad9
10 files changed
+64 -31

No files matched your search

@@ -419,9 +419,14 @@ public class EhEngine {
}
public static GalleryComment[] commentGallery(@Nullable EhClient.Task task,
OkHttpClient okHttpClient, String url, String comment) throws Throwable {
FormBody.Builder builder = new FormBody.Builder()
.add("commenttext_new", comment);
OkHttpClient okHttpClient, String url, String comment, String id) throws Throwable {
FormBody.Builder builder = new FormBody.Builder();
if (id == null) {
builder.add("commenttext_new", comment);
} else {
builder.add("commenttext_edit", comment);
builder.add("edit_comment", id);
}
String origin = EhUrl.getOrigin();
Log.d(TAG, url);
Request request = new EhRequestBuilder(url, url, origin)