feat:下单时判断是否为自己的钱包
This commit is contained in:
1 parent
9e21323493
commit
f46762299a
1 file changed
+6
+6
@@ -246,6 +246,12 @@ public class HardOrderServiceImpl extends ServiceImpl<HardOrderMapper, HardOrder
|
||||
}
|
||||
if (ObjectUtil.isEmpty(wallet)) {
|
||||
throw new RuntimeException("用户钱包不存在");
|
||||
} else {
|
||||
if (ObjectUtil.isNotEmpty(wallet.getUserId()) && ObjectUtil.isNotEmpty(dto.getUserId())) {
|
||||
if (ObjectUtil.notEqual(wallet.getUserId(), dto.getUserId())) {
|
||||
throw new RuntimeException("该用户没有这个钱包");
|
||||
}
|
||||
}
|
||||
}
|
||||
} else if (isVerify) {
|
||||
// 判断该二维码有没有被核销
|
||||
|
||||
Reference in new issue
Block a user