Commit 905ee60f authored by shiyu's avatar shiyu

测试账号不发送短信

parent 79e778d0
......@@ -45,6 +45,7 @@ import org.springframework.util.ObjectUtils;
import java.time.Duration;
import java.time.Instant;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Date;
import java.util.List;
import java.util.concurrent.TimeUnit;
......@@ -55,6 +56,9 @@ public class AuctionRecordServiceImpl implements AuctionRecordService {
private static final Logger logger = LoggerFactory.getLogger(AuctionRecordServiceImpl.class);
private static final List<Long> NOT_SEND_MSG_USERID = Arrays.asList(9357942L, 42273900L, 290775L ,61091901L, 299497L, 61097938L,
61113888L, 60652774L, 60684039L, 42192256L, 60652774L);
@Value("${dts.wx.auction-msg-url}")
private String AUCTION_MSG_URL;
......@@ -166,15 +170,19 @@ 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 + "查看";
if (!NOT_SEND_MSG_USERID.contains(auctionRecord.getUserId())) {
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 + "查看";
if (!NOT_SEND_MSG_USERID.contains(auctionRecord.getUserId())) {
aliSmsSender.sendSms(auctionRecord.getUserId(), msg);
}
}
}
//插入最新出价记录
AuctionRecord addRecord = new AuctionRecord();
addRecord.setIsLead(true);
......
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