| | |
| | | import com.google.gson.FieldNamingPolicy; |
| | | import com.google.gson.Gson; |
| | | import com.google.gson.GsonBuilder; |
| | | import com.yeshi.buwan.domain.Config; |
| | | import com.yeshi.buwan.domain.DetailSystem; |
| | | import com.yeshi.buwan.service.imp.ConfigService; |
| | | import com.yeshi.buwan.domain.system.DetailSystemConfig; |
| | | import com.yeshi.buwan.domain.system.DetailSystem; |
| | | import com.yeshi.buwan.service.imp.DetailSystemConfigService; |
| | | import com.yeshi.buwan.service.imp.SystemService; |
| | | import com.yeshi.buwan.service.imp.zhibo.ZhiBoServcie; |
| | | import com.yeshi.buwan.util.JsonUtil; |
| | |
| | | private SystemService systemService; |
| | | |
| | | @Resource |
| | | private ConfigService configService; |
| | | private DetailSystemConfigService configService; |
| | | |
| | | |
| | | public void getTop(AcceptData acceptData, HttpServletRequest request, PrintWriter out) { |
| | |
| | | List<LiveType> typelist = new ArrayList<LiveType>(); |
| | | String value = ""; |
| | | if ("IOS".equalsIgnoreCase(acceptData.getPlatform())) { |
| | | Config config = configService.getConfigByKey("open_huajiao_IOS", detailSystem, acceptData.getVersion()); |
| | | DetailSystemConfig config = configService.getConfigByKey("open_huajiao_IOS", acceptData.getDetailSystem(), acceptData.getVersion()); |
| | | value = config.getValue(); |
| | | } else { |
| | | Config config = configService.getConfigByKey("open_huajiao_Android", detailSystem, acceptData.getVersion()); |
| | | |
| | | DetailSystemConfig config = configService.getConfigByKey("open_huajiao_Android", acceptData.getDetailSystem(), acceptData.getVersion()); |
| | | value = config.getValue(); |
| | | } |
| | | if ("是".equals(value)) { |