|
@@ -11,6 +11,7 @@ import org.apache.logging.log4j.util.Strings;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import java.util.Collections;
|
|
|
+import java.util.Map;
|
|
|
|
|
|
/**
|
|
|
* @author : lingfeng
|
|
@@ -22,11 +23,11 @@ import java.util.Collections;
|
|
|
public class GameServiceImpl extends ServiceImpl<GameMapper, Game> implements IGameService {
|
|
|
|
|
|
@Override
|
|
|
- public String getAdSdkConfig(UserData userData) {
|
|
|
+ public Map<String, Object> getAdSdkConfig(UserData userData) {
|
|
|
Game game = super.getById(userData.getGameId());
|
|
|
if (Strings.isBlank(game.getAdSdkConfig())) {
|
|
|
- return JsonUtil.toString(Collections.singletonMap("adSdk", 0));
|
|
|
+ return Collections.singletonMap("adSdk", 0);
|
|
|
}
|
|
|
- return game.getAdSdkConfig();
|
|
|
+ return JsonUtil.toMap(game.getAdSdkConfig(), Map.class, Object.class);
|
|
|
}
|
|
|
}
|