|
@@ -2,7 +2,7 @@ package com.fdkankan.platform.user.factory.impl;
|
|
|
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.fdkankan.common.constant.Constant;
|
|
|
-import com.fdkankan.common.constant.OrderConstant;
|
|
|
+import com.fdkankan.common.constant.ErrorCode;
|
|
|
import com.fdkankan.common.exception.BusinessException;
|
|
|
import com.fdkankan.platform.order.entity.CommerceOrder;
|
|
|
import com.fdkankan.platform.order.request.RequestPlaceOrder;
|
|
@@ -26,7 +26,7 @@ public class WechatCommerce implements Commerce {
|
|
|
public JSONObject scanPay(RequestPlaceOrder order) throws Exception {
|
|
|
CommerceOrder commerce = commerceOrderService.getById(order.getOrderId());
|
|
|
if (commerce == null){
|
|
|
- throw new BusinessException(OrderConstant.FAILURE_CODE_8001, OrderConstant.FAILURE_MSG_8001);
|
|
|
+ throw new BusinessException(ErrorCode.FAILURE_CODE_8001);
|
|
|
}
|
|
|
String subject = Constant.COMMERCE_SUBJECT;
|
|
|
BigDecimal totalFee = commerce.getAmount().multiply(new BigDecimal(100));
|
|
@@ -39,7 +39,7 @@ public class WechatCommerce implements Commerce {
|
|
|
public JSONObject h5Pay(RequestPlaceOrder order, String ip) throws Exception {
|
|
|
CommerceOrder commerce = commerceOrderService.getById(order.getOrderId());
|
|
|
if (commerce == null){
|
|
|
- throw new BusinessException(OrderConstant.FAILURE_CODE_8001, OrderConstant.FAILURE_MSG_8001);
|
|
|
+ throw new BusinessException(ErrorCode.FAILURE_CODE_8001);
|
|
|
}
|
|
|
String subject = Constant.COMMERCE_SUBJECT;
|
|
|
BigDecimal totalFee = commerce.getAmount().multiply(new BigDecimal(100));
|