|
@@ -16,10 +16,7 @@ import org.apache.http.HttpResponse;
|
|
|
import org.apache.http.util.EntityUtils;
|
|
|
import org.apache.log4j.Logger;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
-import org.springframework.web.bind.annotation.GetMapping;
|
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
import javax.servlet.http.HttpUtils;
|
|
|
import java.util.ArrayList;
|
|
@@ -58,16 +55,17 @@ public class ApiIndexController extends ApiBaseAction {
|
|
|
*/
|
|
|
@IgnoreAuth
|
|
|
@GetMapping("index")
|
|
|
- public Object index() {
|
|
|
+ public Object index(@RequestParam Long storeId) {
|
|
|
Map<String, Object> resultObj = Maps.newHashMap();
|
|
|
// init
|
|
|
Long userId = getUserId();
|
|
|
- Long storeId = getStoreId();
|
|
|
+ //Long storeId = getStoreId();
|
|
|
+ Long storeIdNew = storeId;
|
|
|
//
|
|
|
Map param = Maps.newHashMap();
|
|
|
// param.put("ad_position_ids", new Integer[]{1, 2, 3});
|
|
|
param.put("ad_position_ids", new Integer[]{1});//用户注册
|
|
|
- param.put("storeId",storeId);
|
|
|
+ param.put("storeId",storeIdNew);
|
|
|
List<AdVo> adVos = apiAdService.queryList(param);
|
|
|
//
|
|
|
List<AdVo> banner = new ArrayList();
|