main
parent
070070ea0c
commit
19af6b9e95
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Reference in New Issue