admin
2018-12-10 a1538bb24b06589c24092c6847a977da21e63c00
fanli/src/main/java/com/yeshi/fanli/controller/client/ShareController.java
@@ -30,6 +30,7 @@
import com.yeshi.fanli.util.factory.MonitorFactory;
import com.yeshi.fanli.util.taobao.TaoBaoUtil;
import net.sf.json.JSONArray;
import net.sf.json.JSONObject;
@Controller(value = "ShareController1")
@@ -118,11 +119,15 @@
            descText = descText.substring(0);
         data.put("descText", descText);
         //
         data.put("notifyPicture", "");
         data.put("notifyDesc", "");
         String imgs = configService.get("goods_share_notify_imgs");
         JSONArray array = JSONArray.fromObject(imgs);
         int p = (int) (array.size() * Math.random());
         if (p < array.size())
            data.put("notifyPicture", array.optString(p));
         data.put("notifyDesc", configService.get("goods_share_notify"));
         // 添加分享记录
         BigDecimal rate = new BigDecimal(hongBaoManageService.get("hongbao_goods_proportion"));
         BigDecimal rate =hongBaoManageService.getFanLiRate();
         UserShareGoodsHistory history = new UserShareGoodsHistory();
         history.setTkCode(taoBaoLink.getTaoToken());
         history.setLink(taoBaoLink.getClickUrl());