| | |
| | | return new FebsResponse().success().data(objects); |
| | | } |
| | | |
| | | @Override |
| | | public FebsResponse createOrderByXtPay() { |
| | | |
| | | DataDictionaryCustom dataDictionaryCustom = dataDictionaryCustomMapper.selectDicDataByTypeAndCode( |
| | | "PAY_LINK", "XT_LINK" |
| | | ); |
| | | |
| | | DataDictionaryCustom dataDictionaryCustomImg = dataDictionaryCustomMapper.selectDicDataByTypeAndCode( |
| | | "PAY_LINK", "XT_LINK_IMG" |
| | | ); |
| | | if (ObjectUtil.isEmpty(dataDictionaryCustom)){ |
| | | return new FebsResponse().fail().message("Payment channel exception"); |
| | | } |
| | | if (ObjectUtil.isEmpty(dataDictionaryCustomImg)){ |
| | | return new FebsResponse().fail().message("Payment channel exception"); |
| | | } |
| | | if (StrUtil.isEmpty(dataDictionaryCustom.getValue())){ |
| | | return new FebsResponse().fail().message("Payment channel exception"); |
| | | } |
| | | if (StrUtil.isEmpty(dataDictionaryCustomImg.getValue())){ |
| | | return new FebsResponse().fail().message("Payment channel exception"); |
| | | } |
| | | |
| | | Map<String, Object> result = new HashMap<>(); |
| | | result.put("link", dataDictionaryCustom.getValue()); |
| | | result.put("linkImg", dataDictionaryCustomImg.getValue()); |
| | | return new FebsResponse().success().data(result); |
| | | } |
| | | |
| | | } |