refactor(game): 优化游戏列表接口参数传递方式
- 在 GamesPPServiceImpl 中,将 JSONUtils.toJSONString(params) 替换为直接使用 params - 在 PPClient 中,修改 getGameList 方法参数类型从 String 改为 Map<String, Object>upgrade_s1^2
parent
5ccad3dcc5
commit
8744ad3589
|
@ -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进行交换转账
|
||||||
*
|
*
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue