|
|
@@ -6,6 +6,7 @@ import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.AllArgsConstructor;
|
|
|
import org.springblade.common.cache.PaymentCache;
|
|
|
import org.springblade.common.enums.*;
|
|
|
+import org.springblade.common.utils.TradeException;
|
|
|
import org.springblade.core.log.exception.ServiceException;
|
|
|
import org.springblade.core.tool.api.R;
|
|
|
import org.springblade.gateway.client_gateway.entity.dto.ClientTradeDto;
|
|
|
@@ -71,7 +72,7 @@ public class ClientTradeController {
|
|
|
successParams = trade.tradeForScanPay(order, clientTradeDto.getChannelId());
|
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
|
- throw new ServiceException(ResCode.TRADE_ERROR);
|
|
|
+ throw new TradeException(ResCode.TRADE_ERROR, successParams);
|
|
|
}
|
|
|
return R.data(successParams);
|
|
|
}
|