no shopping v2

This commit is contained in:
gdlbo
2022-06-29 18:49:15 +03:00
parent f52a20aa1a
commit 0f40f58801
3 changed files with 17 additions and 1 deletions
@@ -43,6 +43,18 @@ public class JsonInjectors{
return new JSONObject("{\"name\":\"group_admin_welcome\",\"text\":\"" + textverif + "\",\"buttons\":[],\"icon\":\"" + pic + "\"}");
}
public static JSONObject menu(JSONObject orig) throws JSONException{
var Special = orig.optJSONArray("special");
var Main = orig.getJSONArray("main");
var Other = orig.optJSONArray("other");
if(Special.optJSONObject(0) != null){
orig.remove("special");
}
return orig;
}
public static boolean haveDonateButton(){
int randomshower = new Random().nextInt(6);
@@ -38,6 +38,10 @@
.method public final a(Lorg/json/JSONObject;)Lcom/vk/dto/menu/MenuResponse;
.locals 9
invoke-static {p1}, Lru/vtosters/lite/utils/JsonInjectors;->menu(Lorg/json/JSONObject;)Lorg/json/JSONObject;
move-result-object p1
const-string v0, "main"
.line 1
@@ -223,7 +223,7 @@
goto/16 :goto_1
:sswitch_c
const-string v0, "null"
const-string v0, "shopping"
.line 16
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z