From 7c90aa8cdccb1aadde27943dac1b4d966b3c8d11 Mon Sep 17 00:00:00 2001 From: Administrator <Administrator@Admin> Date: 星期一, 17 十二月 2018 15:28:41 +0800 Subject: [PATCH] 动态分享返回标题 --- fanli/src/main/java/com/yeshi/fanli/service/impl/activity/ActivityServiceImpl.java | 13 +++++++------ 1 files changed, 7 insertions(+), 6 deletions(-) diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/activity/ActivityServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/activity/ActivityServiceImpl.java index 8994412..b23df3f 100644 --- a/fanli/src/main/java/com/yeshi/fanli/service/impl/activity/ActivityServiceImpl.java +++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/activity/ActivityServiceImpl.java @@ -4,6 +4,7 @@ import java.util.ArrayList; import java.util.Date; import java.util.List; +import java.util.Map; import javax.annotation.Resource; @@ -170,8 +171,8 @@ throw new ActivityException(1, "鍟嗗搧涓嬫灦"); } - JSONObject resultdata = userShareGoodsRecordService.save(uid, ShareSourceTypeEnum.activity, title, listGoodsBrief); - imgList.add((FileUploadResult) resultdata.get("loadResult")); + Map<String,Object> map = userShareGoodsRecordService.save(uid, ShareSourceTypeEnum.activity, title, listGoodsBrief); + imgList.add((FileUploadResult) map.get("loadResult")); result.setImgList(imgList); return result; @@ -237,12 +238,12 @@ JSONObject data = new JSONObject(); - JSONObject resultdata = userShareGoodsRecordService.save(uid, - ShareSourceTypeEnum.activity, title, listGoodsBrief); + Map<String,Object> map = userShareGoodsRecordService.save(uid, ShareSourceTypeEnum.activity, title, listGoodsBrief); + data.put("title", title); data.put("revenue", revenue); - data.put("shareId", resultdata.get("shareId")); - data.put("shareImg", resultdata.get("loadResult")); + data.put("shareId", map.get("shareId")); + data.put("shareImg", map.get("loadResult")); data.put("notifyDesc", configService.get("goods_share_notify")); return data; -- Gitblit v1.8.0