|
@@ -22,5 +22,31 @@ namespace GFGGame
|
|
return true;
|
|
return true;
|
|
|
|
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ public static async ETTask<bool> CardSynthetic(int itemId,bool isFirst)
|
|
|
|
+ {
|
|
|
|
+ var response = (M2C_ClothingSynthetic)await MessageHelper.SendToServer(new C2M_ClothingSynthetic() { ItemId = itemId });
|
|
|
|
+ if (response != null)
|
|
|
|
+ {
|
|
|
|
+ if (response.Error == ErrorCode.ERR_Success)
|
|
|
|
+ {
|
|
|
|
+ if(isFirst)
|
|
|
|
+ {
|
|
|
|
+ ViewManager.Show<LuckyBoxNewCardView>(itemId);
|
|
|
|
+ }
|
|
|
|
+ else
|
|
|
|
+ {
|
|
|
|
+ int[][] array = new int[][]
|
|
|
|
+ {
|
|
|
|
+ new int[] { 3000028, 1 }
|
|
|
|
+ };
|
|
|
|
+ BonusController.TryShowBonusList(array);
|
|
|
|
+ }
|
|
|
|
+ return true;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ return true;
|
|
|
|
+
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|