|
|
@ -6,6 +6,7 @@ import awesome.group.game.dao.mapper.MatrixAppMapper; |
|
|
|
import awesome.group.game.dao.mapper.MatrixEvilAppMapper; |
|
|
|
import awesome.group.game.service.bo.citrus.AppBasicInfo; |
|
|
|
import awesome.group.game.service.bo.citrus.MarketBo; |
|
|
|
import awesome.group.game.service.cache.JedisManager; |
|
|
|
import org.springframework.beans.factory.annotation.Autowired; |
|
|
|
import org.springframework.stereotype.Service; |
|
|
|
|
|
|
@ -19,9 +20,14 @@ public class CitrusAppService { |
|
|
|
@Autowired |
|
|
|
private MatrixEvilAppMapper evilAppMapper; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private JedisManager jedisManager; |
|
|
|
|
|
|
|
public AppBasicInfo getAppDetail(String appCode) { |
|
|
|
MatrixApp app = appMapper.queryByCode(appCode); |
|
|
|
return AppBasicInfo.getBasic(app); |
|
|
|
AppBasicInfo res = AppBasicInfo.getBasic(app); |
|
|
|
res.disable = jedisManager.exist("disable_" + appCode); |
|
|
|
return res; |
|
|
|
} |
|
|
|
|
|
|
|
public MarketBo getMarketBo(String appCode) { |
|
|
|