From 3ce8dba98f9630a29345d695c7946e2a0129adee Mon Sep 17 00:00:00 2001 From: shi Date: Thu, 3 Apr 2025 16:57:14 +0800 Subject: [PATCH] =?UTF-8?q?feat(game):=20=E6=B7=BB=E5=8A=A0=20PGT=20?= =?UTF-8?q?=E6=B8=B8=E6=88=8F=E5=B9=B3=E5=8F=B0=E6=94=AF=E6=8C=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 新增 PGT 游戏平台的 API接口和实现类 - 添加 PGT 游戏平台的会员账户生成逻辑 - 实现 PGT 游戏平台的余额查询、转账等功能 - 添加 PGT 游戏平台的错误响应和数据模型类 --- .../src/main/java/com/ff/game/api/pgt/client/PGTClient.java | 4 ++-- .../java/com/ff/game/api/pgt/impl/GamesPGTServiceImpl.java | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ff-game/src/main/java/com/ff/game/api/pgt/client/PGTClient.java b/ff-game/src/main/java/com/ff/game/api/pgt/client/PGTClient.java index 74bfe60..0ab0842 100644 --- a/ff-game/src/main/java/com/ff/game/api/pgt/client/PGTClient.java +++ b/ff-game/src/main/java/com/ff/game/api/pgt/client/PGTClient.java @@ -58,8 +58,8 @@ public interface PGTClient { * @param parameters 范围 * @return {@link PGXGameLoginResponse } */ - @Post("/launchGames.aspx?${parameters}") - PGXGameLoginResponse loginWithoutRedirect(@Var("parameters") String parameters); + @Post("/logIn") + PGXGameLoginResponse loginWithoutRedirect(@JSONBody Map parameters, @Header Map headerMap); diff --git a/ff-game/src/main/java/com/ff/game/api/pgt/impl/GamesPGTServiceImpl.java b/ff-game/src/main/java/com/ff/game/api/pgt/impl/GamesPGTServiceImpl.java index 765c85e..b2d4c1c 100644 --- a/ff-game/src/main/java/com/ff/game/api/pgt/impl/GamesPGTServiceImpl.java +++ b/ff-game/src/main/java/com/ff/game/api/pgt/impl/GamesPGTServiceImpl.java @@ -178,7 +178,7 @@ public class GamesPGTServiceImpl implements IGamesService { */ @Override public String loginWithoutRedirect(GamesLogin gamesLogin) { - log.info("GamesPGXServiceImpl [loginWithoutRedirect] 请求参数 {}", gamesLogin); + log.info("GamesPGTServiceImpl [loginWithoutRedirect] 请求参数 {}", gamesLogin); GameSecretKey gameSecretKey = gameSecretKeyService.selectGameSecretKeyByCode(gamesLogin.getAgentId()); Map params = new LinkedHashMap<>(); params.put("operatorcode", gamesLogin.getAgentId()); @@ -191,7 +191,7 @@ public class GamesPGTServiceImpl implements IGamesService { params.put("lang", gamesLogin.getLang()); params.put("html5", 1); params.put("signature", key); - PGXGameLoginResponse PGXGameLoginResponse = pgtClient.loginWithoutRedirect(JsonUtil.mapToQueryString(params)); + PGXGameLoginResponse PGXGameLoginResponse = pgtClient.loginWithoutRedirect(params,key); //判断是否获取成功 if (this.getIsSuccess(PGXGameLoginResponse.getErrCode())) { return PGXGameLoginResponse.getGameUrl();