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();