linhw 2024-04-29 13:30:42 +08:00
parent 070070ea0c
commit 19af6b9e95
1 changed files with 1 additions and 1 deletions

View File

@ -168,7 +168,7 @@ public class PayController extends BaseController
String code = useExchangeArg.getCode();
Long userId = useExchangeArg.getUserId();
AppExchangeCode appExchangeCode = appExchangeCodeMapper.selectAppExchangeCodeByCode(code);
if (appExchangeCode == null || appExchangeCode.getUserId() > 1) {
if (appExchangeCode == null || appExchangeCode.getUserId() != null) {
return AjaxResult.error("该兑换码不存在或已被使用,请检查该兑换码是否正确!");
}
AppExchangeCode entity = new AppExchangeCode();