no shopping v2
This commit is contained in:
@@ -43,6 +43,18 @@ public class JsonInjectors{
|
|||||||
return new JSONObject("{\"name\":\"group_admin_welcome\",\"text\":\"" + textverif + "\",\"buttons\":[],\"icon\":\"" + pic + "\"}");
|
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(){
|
public static boolean haveDonateButton(){
|
||||||
int randomshower = new Random().nextInt(6);
|
int randomshower = new Random().nextInt(6);
|
||||||
|
|
||||||
|
|||||||
@@ -38,6 +38,10 @@
|
|||||||
.method public final a(Lorg/json/JSONObject;)Lcom/vk/dto/menu/MenuResponse;
|
.method public final a(Lorg/json/JSONObject;)Lcom/vk/dto/menu/MenuResponse;
|
||||||
.locals 9
|
.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"
|
const-string v0, "main"
|
||||||
|
|
||||||
.line 1
|
.line 1
|
||||||
|
|||||||
@@ -223,7 +223,7 @@
|
|||||||
goto/16 :goto_1
|
goto/16 :goto_1
|
||||||
|
|
||||||
:sswitch_c
|
:sswitch_c
|
||||||
const-string v0, "null"
|
const-string v0, "shopping"
|
||||||
|
|
||||||
.line 16
|
.line 16
|
||||||
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z
|
||||||
|
|||||||
Reference in New Issue
Block a user