| | |
| | | |
| | | public ServerResponse thirdPartyRecharge(HttpServletRequest request, String tradeAmount, Integer type) throws UnsupportedEncodingException, JsonProcessingException, NoSuchAlgorithmException { |
| | | // 支付1 |
| | | String reqUrl = "https://api.watchglbpay.com/pay/web"; |
| | | String reqUrl = "https://api.watchglb.com/pay/web"; |
| | | // 支付2 |
| | | String uipReqRul = "https://v2.fastechservicepro.com/payin/unifiedorder"; |
| | | |
| | |
| | | return ServerResponse.createByErrorCodeMsg(401,googleTranslateUtil.translate("请登录",lang )); |
| | | } |
| | | |
| | | if(type == 1){//支付1 |
| | | return getPaymentOne(tradeAmount, reqUrl,user,request); |
| | | }else if(type == 2){//支付2 |
| | | return getPaymentTwo(tradeAmount, uipReqRul, user,request); |
| | | } |
| | | // if(type == 1){//支付1 |
| | | // return getPaymentOne(tradeAmount, reqUrl,user,request); |
| | | // }else if(type == 2){//支付2 |
| | | // return getPaymentTwo(tradeAmount, uipReqRul, user,request); |
| | | // } |
| | | return ServerResponse.createByErrorMsg("获取支付方式失败",request); |
| | | } |
| | | |