fix geek act

master
luoyang 5 years ago
parent b9f137ee34
commit a4194c2686

@ -9,7 +9,7 @@
</parent> </parent>
<modelVersion>4.0.0</modelVersion> <modelVersion>4.0.0</modelVersion>
<artifactId>manage</artifactId> <artifactId>manage</artifactId>
<version>1.3.60</version> <version>1.3.61</version>
<properties> <properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jib-maven-plugin.version>1.8.0</jib-maven-plugin.version> <jib-maven-plugin.version>1.8.0</jib-maven-plugin.version>

@ -1588,18 +1588,21 @@ public class RetailAppServiceImp implements RetailAppService {
latestAct.put("url", latestAct.getString("act_url")); latestAct.put("url", latestAct.getString("act_url"));
latestAct.put("title", latestAct.getString("act_name")); latestAct.put("title", latestAct.getString("act_name"));
latestAct.put("img", latestAct.getString("act_img")); latestAct.put("img", latestAct.getString("act_img"));
latestAct.remove("act_id");
latestAct.remove("act_name");
latestAct.remove("act_url");
JSONObject act = new JSONObject(); JSONObject act = new JSONObject();
act.put("data", latestAct); act.put("data", latestAct);
act.put("type", "popup"); act.put("type", "popup");
if (StringUtils.equalsIgnoreCase("跨境商城", latestAct.getString("act_name"))) { if (StringUtils.equalsIgnoreCase("跨境商城", latestAct.getString("act_name"))) {
if (clientConfig !=null && !clientConfig.getBooleanValue("geek_shop_status") if (clientConfig !=null && !clientConfig.getBooleanValue("geek_shop_status")
&& geekShowActVersion(device.getString("version"))) { && geekShowActVersion(device.getString("version"))) {
latestAct.remove("act_id");
latestAct.remove("act_name");
latestAct.remove("act_url");
result.add(act); result.add(act);
} }
}else { }else {
latestAct.remove("act_id");
latestAct.remove("act_name");
latestAct.remove("act_url");
result.add(act); result.add(act);
} }
} }

@ -482,11 +482,6 @@ public class RetailAppController {
return appActService.listAppActs(); return appActService.listAppActs();
} }
@GetMapping("/popup_acts")
public JSONObject getAppActPopup(@ModelAttribute(CommonConsts.RETAIL_DEVICE) JSONObject device) {
return appActService.getAppActPopup();
}
@GetMapping("/act/mondelay/desc") @GetMapping("/act/mondelay/desc")
public ModelAndView getActDetail(@ModelAttribute(CommonConsts.RETAIL_DEVICE) JSONObject device) { public ModelAndView getActDetail(@ModelAttribute(CommonConsts.RETAIL_DEVICE) JSONObject device) {
ModelAndView mav = new ModelAndView("activity/mondelay/mondelay"); ModelAndView mav = new ModelAndView("activity/mondelay/mondelay");

Loading…
Cancel
Save