|
@@ -14,10 +14,7 @@ import com.baomidou.lock.executor.RedisTemplateLockExecutor;
|
|
|
import com.github.pagehelper.PageHelper;
|
|
|
import com.github.pagehelper.PageInfo;
|
|
|
import com.txz.cif.constants.MyConstants;
|
|
|
-import com.txz.cif.core.AuthService;
|
|
|
-import com.txz.cif.core.Result;
|
|
|
-import com.txz.cif.core.ResultCode;
|
|
|
-import com.txz.cif.core.ResultGenerator;
|
|
|
+import com.txz.cif.core.*;
|
|
|
import com.txz.cif.dto.BizLogDTO;
|
|
|
import com.txz.cif.dto.tfpay.CheckSignDTO;
|
|
|
import com.txz.cif.dto.tfpay.TFCreateOrderDTO;
|
|
@@ -31,7 +28,6 @@ import com.txz.cif.web.para.RecordParam;
|
|
|
import com.txz.cif.web.ro.TFPayNotifyDTO;
|
|
|
import com.txz.cif.web.vo.CreatePayVO;
|
|
|
import com.txz.cif.web.vo.PaymentPriceVO;
|
|
|
-import com.txz.core.ServiceException;
|
|
|
import com.txz.mall.enums.NoticeEnum;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
@@ -247,7 +243,7 @@ public class RechargeRecordApiController {
|
|
|
}
|
|
|
break;
|
|
|
default:
|
|
|
- throw new ServiceException("暂不支持此渠道");
|
|
|
+ throw new ServiceException(ResultCode.CHANNEL_EXCEPTION);
|
|
|
}
|
|
|
|
|
|
try {
|
|
@@ -266,7 +262,7 @@ public class RechargeRecordApiController {
|
|
|
}
|
|
|
|
|
|
if (!issuccess) {
|
|
|
- throw new ServiceException("创建支付单失败");
|
|
|
+ throw new ServiceException(ResultCode.ADD_RECHARGE_RECORD_EXCEPTION);
|
|
|
}
|
|
|
|
|
|
return Result.success(CreatePayVO.builder().orderNo(orderNo).payUrl(payUrl).build());
|