Commit 896fefc3 authored by shiyu's avatar shiyu

出价被超越短信先不发送

parent fe3d5ee7
......@@ -166,13 +166,13 @@ public class AuctionRecordServiceImpl implements AuctionRecordService {
String url = wxAppletApi.getUrlLink(AUCTION_MSG_URL, "itemId=" + itemId + "&shareRecordId=");
String msg = "您出价过的拍品" + supplierItem.getName() + "的价格被其他人超越了, 当前价是" + PriceUtil.convertPriceFenToYuan(price) +
"元,竞拍截止时间是" + DateUtils.toString(endTime) +", 请前往"+ url + "查看";
aliSmsSender.sendSms(auctionRecord.getUserId(), msg);
// aliSmsSender.sendSms(auctionRecord.getUserId(), msg);
}
} else {
String url = wxAppletApi.getUrlLink(AUCTION_MSG_URL,"itemId=" + itemId + "&shareRecordId=");
String msg = "您出价过的拍品" + supplierItem.getName() + "的价格被其他人超越了, 当前价是" + PriceUtil.convertPriceFenToYuan(price) +
"元,竞拍截止时间是" + DateUtils.toString(endTime) +", 请前往"+ url + "查看";
aliSmsSender.sendSms(auctionRecord.getUserId(), msg);
// aliSmsSender.sendSms(auctionRecord.getUserId(), msg);
}
}
//插入最新出价记录
......@@ -201,7 +201,7 @@ public class AuctionRecordServiceImpl implements AuctionRecordService {
}
//发送消息通知对应的分销商有用户出价, 排除分销商id为系统默认账号的情况
if (distributorShareRecord.getDistributorId().longValue() != CommConsts.SYSTEM_ACCOUNT) {
/* if (distributorShareRecord.getDistributorId().longValue() != CommConsts.SYSTEM_ACCOUNT) {
String openId = sendMsgService.getOpenIdByUserId(distributorShareRecord.getDistributorId());
if (com.xxdxxs.utils.StringUtils.hasLength(openId)) {
AuctionOfferNoticeMsg auctionOfferNoticeMsg = new AuctionOfferNoticeMsg();
......@@ -222,7 +222,7 @@ public class AuctionRecordServiceImpl implements AuctionRecordService {
"元,请前往"+ url + "查看";
aliSmsSender.sendSms(distributorShareRecord.getDistributorId(), msg);
}
}
}*/
return Result.success();
} else {
return Result.failed("出价者较多,请刷新出价记录");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment