| | |
| | | if(null == type){ |
| | | return ServerResponse.createByErrorMsg("请选择支付通道!",request); |
| | | } |
| | | if(new BigDecimal(tradeAmoun).compareTo(new BigDecimal("1000")) < 0){ |
| | | return ServerResponse.createByErrorMsg("请重新输入,最低充值金额:1000", request); |
| | | if(new BigDecimal(tradeAmoun).compareTo(new BigDecimal("5000")) < 0){ |
| | | return ServerResponse.createByErrorMsg("请重新输入,最低充值金额:5000", request); |
| | | } |
| | | |
| | | payCreated.set(true); |
| | |
| | | return ServerResponse.createByErrorCodeMsg(401,googleTranslateUtil.translate("请登录",lang )); |
| | | } |
| | | |
| | | if(type == 1){//支付1 |
| | | if(type == 2){//支付1 |
| | | return getPaymentOne(tradeAmount, reqUrl,user,request); |
| | | }else if(type == 2){//支付2 |
| | | }else if(type == 1){//支付2 |
| | | return getPaymentTwo(tradeAmount, uipReqRul, user,request); |
| | | } |
| | | return ServerResponse.createByErrorMsg("获取支付方式失败",request); |
| | |
| | | public static void main(String[] args) { |
| | | String encryptData = encryptFromString("zdm321123.", Mode.CBC, Padding.ZeroPadding); |
| | | System.out.println("加密:" + encryptData); |
| | | String decryptData = decryptFromString(encryptData, Mode.CBC, Padding.ZeroPadding); |
| | | String decryptData = decryptFromString("iX3XpSUQrBjKGLqfxtlKDA==", Mode.CBC, Padding.ZeroPadding); |
| | | System.out.println("解密:" + decryptData); |
| | | } |
| | | |