|
|
|
@ -148,12 +148,34 @@ public class RechargeConfig { |
|
|
|
|
Map<String,Object> paramMap = new HashMap<>(); |
|
|
|
|
|
|
|
|
|
paramMap.put("agentOrderId" , object.getString("agentOrderId")); |
|
|
|
|
paramMap.put("productId" , object.getString("productId")); |
|
|
|
|
paramMap.put("productId" , object.getInteger("productId")); |
|
|
|
|
paramMap.put("mobile" , object.getString("mobile")); |
|
|
|
|
paramMap.put("timestamp" , DateUtil.date2String(new Date() , DateUtil.Y_M_D_HMS)); |
|
|
|
|
paramMap.put("appid" , CommonSysConst.getSysConfig().getCyApiKey()); |
|
|
|
|
paramMap.put("sign", WxUtils.generateSignatureLy(paramMap , CommonSysConst.getSysConfig().getCyAppSecret() , WXPayConstants.SignType.MD5)); |
|
|
|
|
return HttpsUtils.doPost(CommonSysConst.getSysConfig().getCyPostUrl()+ "/api/interface/recharge", paramMap , new HashMap<>()); |
|
|
|
|
paramMap.put("sign", WxUtils.generateSignatureCy(paramMap , CommonSysConst.getSysConfig().getCyAppSecret() , WXPayConstants.SignType.MD5)); |
|
|
|
|
|
|
|
|
|
return HttpsUtils.doPostByCy(CommonSysConst.getSysConfig().getCyPostUrl()+ "/api/interface/recharge", paramMap); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @Author Sum1Dream |
|
|
|
|
* @name rechargeOrderByCy.java |
|
|
|
|
* @Description // 城宇话费查询订单详情
|
|
|
|
|
* @Date 10:22 2022/7/14 |
|
|
|
|
* @Param [com.alibaba.fastjson.JSONObject] |
|
|
|
|
* @return com.alibaba.fastjson.JSONObject |
|
|
|
|
*/ |
|
|
|
|
public static JSONObject queryRechargeByCy(JSONObject object) throws Exception { |
|
|
|
|
|
|
|
|
|
Map<String,Object> paramMap = new HashMap<>(); |
|
|
|
|
|
|
|
|
|
paramMap.put("orderId" , object.getString("orderNo")); |
|
|
|
|
paramMap.put("timestamp" , DateUtil.date2String(new Date() , DateUtil.Y_M_D_HMS)); |
|
|
|
|
paramMap.put("appid" , CommonSysConst.getSysConfig().getCyApiKey()); |
|
|
|
|
paramMap.put("sign", WxUtils.generateSignatureCy(paramMap , CommonSysConst.getSysConfig().getCyAppSecret() , WXPayConstants.SignType.MD5)); |
|
|
|
|
|
|
|
|
|
return HttpsUtils.doPostByCy(CommonSysConst.getSysConfig().getCyPostUrl()+ "/api/interface/queryRecharge", paramMap); |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|