|
|
@@ -137,7 +137,7 @@ public class OpenAppHomeController extends BaseApiController{
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "/recommendedApplication" , method = RequestMethod.GET)
|
|
|
- public Result recommendedApplication(Integer pageNo,Integer pageSize) {
|
|
|
+ public Result recommendedApplication(String apiUrl,Integer pageNo,Integer pageSize) {
|
|
|
Result result=new Result();
|
|
|
if (null==pageNo)pageNo=1;
|
|
|
if (null==pageSize)pageSize=3;
|
|
|
@@ -146,7 +146,7 @@ public class OpenAppHomeController extends BaseApiController{
|
|
|
map.put("recommended", jtBusinessService.recommendedApplication(null,pageNo,pageSize));
|
|
|
map.put("tag", jtTagService.selectListJtTag(null, 1, 99));
|
|
|
|
|
|
- map.put("homeImg", bannersService.findBannersList( BannersStatus.HOME.getKey(),1, 1, 1));
|
|
|
+ map.put("homeImg", bannersService.findBannersList( apiUrl,1, 1, 1));
|
|
|
result.setData(map);
|
|
|
return result;
|
|
|
}
|
|
|
@@ -155,14 +155,14 @@ public class OpenAppHomeController extends BaseApiController{
|
|
|
* @return
|
|
|
*/
|
|
|
@RequestMapping(value = "/getHomeData" , method = RequestMethod.GET)
|
|
|
- public Result getHomeData(Integer pageNo,Integer pageSize) {
|
|
|
+ public Result getHomeData(String apiUrl,Integer pageNo,Integer pageSize) {
|
|
|
Result result=new Result();
|
|
|
if (null==pageNo)pageNo=1;
|
|
|
if (null==pageSize)pageSize=3;
|
|
|
Map<String, Object> map=new HashMap<>();
|
|
|
//1 赚钱数据 2首页数据
|
|
|
map.put("recommended", jtBusinessService.recommendedApplication(null,pageNo,pageSize));
|
|
|
- map.put("homeImg", bannersService.findBannersList( BannersStatus.HOME.getKey(),1, 3, 1));
|
|
|
+ map.put("homeImg", bannersService.findBannersList( apiUrl,1, 3, 1));
|
|
|
result.setData(map);
|
|
|
return result;
|
|
|
}
|