|
|
@@ -18,6 +18,7 @@ import org.dromara.backstage.api.domain.vo.RemoteUserAccountVo;
|
|
|
import org.dromara.common.core.constant.ApiErrorTypeConstants;
|
|
|
import org.dromara.common.core.domain.R;
|
|
|
import org.dromara.common.core.domain.model.ErrorInfo;
|
|
|
+import org.dromara.common.core.enums.TradeStatusEnum;
|
|
|
import org.dromara.common.core.enums.UserAccountStatusEnum;
|
|
|
import org.dromara.common.core.utils.RecordIdUtils;
|
|
|
import org.dromara.server.common.domain.consume.bo.ConsumptionBo;
|
|
|
@@ -451,9 +452,9 @@ public class CheckBusiness {
|
|
|
|
|
|
int offsetTypeId = (int) Math.pow(2, (cardTypeId - 1));
|
|
|
if ((offsetTypeId & termCardTypeId) != offsetTypeId) {
|
|
|
- return R.fail(new ErrorInfo(400, type, "卡类限制", ""));
|
|
|
+ return R.fail(new ErrorInfo(400, ApiErrorTypeConstants.NOT_FOUND, "卡类限制", TradeStatusEnum.CardTypeLimit.getName()));
|
|
|
}
|
|
|
- return R.ok();
|
|
|
+ return R.fail();
|
|
|
}
|
|
|
|
|
|
private RemoteOperatorVo getOperatorVo(ConsumptionBo bo) {
|