| | |
| | | package com.mzl.flower.pay; |
| | | |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.net.URLEncoder; |
| | |
| | | params.put("appid", SybConstants.SYB_APPID); |
| | | params.put("version", "11"); |
| | | params.put("reqsn", reqsn); |
| | | params.put("trxid", trxid); |
| | | if(StringUtils.isNotBlank(trxid)){ |
| | | params.put("trxid", trxid); |
| | | } |
| | | params.put("randomstr", SybUtil.getValidatecode(8)); |
| | | params.put("signtype", SybConstants.SIGN_TYPE); |
| | | String appkey = ""; |
| | |
| | | |
| | | |
| | | public static Map<String,String> handleResult(String result) throws Exception{ |
| | | System.out.println("通联支付返回结果:"+result); |
| | | log.info("ret:"+result); |
| | | log.info("通联支付返回结果:"+result); |
| | | Map map = SybUtil.json2Obj(result, Map.class); |
| | | if(map == null){ |
| | | throw new Exception("返回数据错误"); |