refactor(game): 优化游戏列表接口参数传递方式

- 在 GamesPPServiceImpl 中,将 JSONUtils.toJSONString(params) 替换为直接使用 params
- 在 PPClient 中,修改 getGameList 方法参数类型从 String 改为 Map<String, Object>
upgrade_s1^2
shi 2025-03-28 18:46:38 +08:00
parent 5ccad3dcc5
commit 8744ad3589
2 changed files with 3 additions and 3 deletions

View File

@ -48,7 +48,7 @@ public interface PPClient {
/** /**
* *
* *
* @param parameters * @param params
* @return {@link PPGameResponseDTO } * @return {@link PPGameResponseDTO }
*/ */
@Post( url ="/getCasinoGames/", @Post( url ="/getCasinoGames/",
@ -56,7 +56,7 @@ public interface PPClient {
"Content-type: application/x-www-form-urlencoded" "Content-type: application/x-www-form-urlencoded"
}) })
PPGameResponseDTO getGameList(@Body String parameters); PPGameResponseDTO getGameList(@Body Map<String, Object> params);
/** /**
* id * id
* *

View File

@ -193,7 +193,7 @@ public class GamesPPServiceImpl implements IGamesService {
String key = this.getKey(gamesBaseRequestDTO); String key = this.getKey(gamesBaseRequestDTO);
params.put("hash", key); params.put("hash", key);
PPGameResponseDTO gameList = PPClient.getGameList(JSONUtils.toJSONString(params)); PPGameResponseDTO gameList = PPClient.getGameList(params);
return CacheConstants.PP_GAMES; return CacheConstants.PP_GAMES;