订阅修改
This commit is contained in:
@@ -190,6 +190,7 @@ public class TbCallServiceImpl implements TbCallService {
|
||||
throw new MsgException("此号码已被其他用户订阅");
|
||||
}
|
||||
|
||||
if (!subMsgDTO.getOpenId().equals(queue.getOpenId()) && queue.getSubState() == 0) {
|
||||
Integer count = callQueueService.lambdaQuery()
|
||||
// .eq(TbCallQueue::getPhone, takeNumberDTO.getPhone())
|
||||
.eq(TbCallQueue::getOpenId, subMsgDTO.getOpenId())
|
||||
@@ -201,6 +202,7 @@ public class TbCallServiceImpl implements TbCallService {
|
||||
if (count > 0) {
|
||||
throw new MsgException("您已订阅其他号码,请勿重复订阅");
|
||||
}
|
||||
}
|
||||
|
||||
queue.setSubState(1);
|
||||
queue.setOpenId(subMsgDTO.getOpenId());
|
||||
|
||||
Reference in New Issue
Block a user