| | |
| | | data.put("inviteList", String.format("http://%s/%s/client/share/friends_new_online.html",
|
| | | Constant.systemCommonConfig.getProjectHost(), Constant.systemCommonConfig.getProjectName()));
|
| | | else
|
| | |
|
| | | data.put("inviteList", String.format("http://%s/%s/client/share/friends_new.html",
|
| | | Constant.systemCommonConfig.getProjectHost(), Constant.systemCommonConfig.getProjectName()));
|
| | | data.put("inviteList", configService.get("team_list"));
|
| | | out.print(JsonUtil.loadTrueResult(data));
|
| | | final UserInfo uuser = user;
|
| | | ThreadUtil.run(new Runnable() {
|
| | |
| | | }
|
| | |
|
| | | }
|
| | | |
| | |
|
| | | /**
|
| | | * h5收藏
|
| | | * |
| | | * @param callback
|
| | | * @param acceptData
|
| | | * @param uid
|
| | |
| | | * @param out
|
| | | */
|
| | | @RequestMapping("collectionGoodsJp")
|
| | | public void collectionGoodsJp(String callback, AcceptData acceptData, Long uid, Long auctionId, PrintWriter out) {
|
| | | |
| | | public void collectionGoodsJp(String callback, AcceptData acceptData, Long uid, Long auctionId, PrintWriter out) {
|
| | |
|
| | | if (uid == null || auctionId == null) {
|
| | | JsonUtil.printMode(out, callback,JsonUtil.loadFalseResult(""));
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult(""));
|
| | | return;
|
| | | }
|
| | | |
| | |
|
| | | CollectionGoods find = collectionGoodsService.findByUidAndAuctionId(uid, auctionId);
|
| | | |
| | |
|
| | | if (find == null) {
|
| | | // 添加收藏
|
| | | CollectionGoods cg = TaoBaoUtil.getCollectionGoods(auctionId, new UserInfo(uid));
|
| | | collectionGoodsService.save(cg);
|
| | | JsonUtil.printMode(out, callback,JsonUtil.loadTrueResult(1));
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadTrueResult(1));
|
| | | } else {
|
| | | // 取消收藏
|
| | | collectionGoodsService.delete(find);
|
| | | JsonUtil.printMode(out, callback,JsonUtil.loadTrueResult(0));
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadTrueResult(0));
|
| | | }
|
| | | |
| | |
|
| | | }
|
| | |
|
| | | @RequestMapping("collectionGoodsList")
|