|
|
@@ -170,11 +170,18 @@ public class GameEventConfigServiceImpl implements IGameEventConfigService {
|
|
|
|
|
|
@Override
|
|
|
public Long queryBgUrlByEventId(Long eventId) {
|
|
|
- String ossId = baseMapper.selectOne(
|
|
|
+ GameEventConfig backgroundImg = baseMapper.selectOne(
|
|
|
Wrappers.lambdaQuery(GameEventConfig.class)
|
|
|
.eq(GameEventConfig::getEventId, eventId)
|
|
|
.eq(GameEventConfig::getConfigKey, "background_img")
|
|
|
- ).getConfigValue();
|
|
|
+ );
|
|
|
+ if (backgroundImg == null) {
|
|
|
+ return 0L;
|
|
|
+ }
|
|
|
+ String ossId = backgroundImg.getConfigValue();
|
|
|
+ if (ossId == null) {
|
|
|
+ return 0L;
|
|
|
+ }
|
|
|
return Long.valueOf(ossId);
|
|
|
}
|
|
|
}
|