feat:初步实现购买游戏接口(待完整联调)

feat:完善游戏房UI
feat:初步实现游戏引擎功能
This commit is contained in:
max
2024-05-28 19:34:03 +08:00
parent c8f83b4ad8
commit c72af689e5
33 changed files with 977 additions and 108 deletions

View File

@@ -7,11 +7,16 @@ import com.google.gson.Gson;
*/
public class JsonUtils {
public static Gson gson;
public static String toJson(Object object) {
if (gson == null) {
gson = new Gson();
}
String result = null;
try {
if (object != null) {
result = new Gson().toJson(object);
result = gson.toJson(object);
}
} catch (Exception ex) {
ex.printStackTrace();