Commit c9e31fcf by 杨林龙

完成基本开发

1 parent d58a67b9
......@@ -3,6 +3,7 @@ package com.glsx.controller;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import cn.com.glsx.openplatform.service.ApiCallMgrService;
import cn.com.glsx.openplatform.service.AppDownloadMgrService;
import cn.com.glsx.openplatform.service.CustomerMgrService;
......@@ -101,8 +102,6 @@ public class IndexController {
}
@RequestMapping(value = "/getUcSummaryStatistic", method = RequestMethod.GET)
@ResponseBody
public R getUcSummaryStatistic(@RequestParam String customerName) {
......@@ -113,21 +112,21 @@ public class IndexController {
@RequestMapping(value = "/getUcDeviceActivationStatistic", method = RequestMethod.GET)
public R getUcDeviceActivationStatistic(@RequestParam String customerName) {
Map<String, Integer> statisticMap = this.indexService
Map<String, Long> statisticMap = this.indexService
.getUcDeviceActivationStatistic(customerName);
return R.ok().data(statisticMap);
}
@RequestMapping(value = "/getUcUserActivityStatistic", method = RequestMethod.GET)
public R getUcUserActivityStatistic(@RequestParam String customerName) {
Map<String, Integer> statisticMap = this.indexService
Map<String, Long> statisticMap = this.indexService
.getUcUserActivityStatistic(customerName);
return R.ok().data(statisticMap);
}
@RequestMapping(value = "/getUcAppDownloadStatistic", method = RequestMethod.GET)
public R getUcAppDownloadStatistic(@RequestParam String customerName) {
Map<String, Integer> statisticMap = this.indexService
Map<String, Long> statisticMap = this.indexService
.getUcAppDownloadStatistic(customerName);
return R.ok().data(statisticMap);
}
......
......@@ -26,7 +26,7 @@ public class CORSFilter implements Filter {
LOGGER.info("当前访问来源是:{}", httpServletRequest.getHeader("Content-Type"));
// 从列表中获取,可以将数据放入缓存
// String corsOriginList = PropertyConfigurer.getString("cors.origin.list.urls");
String corsOriginList = "http://192.168.2.68:8081/ http://192.168.2.106:8081/";
String corsOriginList = "http://192.168.2.68:8081/ http://192.168.2.106:8081/ http://192.168.2.2:8081 http://192.168.2.2:8080";
LOGGER.info("配置的来源:{}", corsOriginList);
if (StringUtils.isNotBlank(curOrigin) && corsOriginList.contains(curOrigin)) {
httpServletResponse.setHeader("Access-Control-Allow-Origin", curOrigin);
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!