|
|
|
@ -203,4 +203,32 @@ public class RechargeConfig { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* @Author Sum1Dream |
|
|
|
|
* @Name searchProductByHg |
|
|
|
|
* @Description // 嗨购话费产品查询
|
|
|
|
|
* @Date 11:39 2023/2/7 |
|
|
|
|
* @Param [object] |
|
|
|
|
* @Return com.alibaba.fastjson.JSONObject |
|
|
|
|
*/ |
|
|
|
|
public static JSONObject searchProductByHg(JSONObject object) throws Exception { |
|
|
|
|
Map<String,Object> paramMap = new HashMap<>(); |
|
|
|
|
|
|
|
|
|
paramMap.put("agentOrderId" , object.getString("agentOrderId")); |
|
|
|
|
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.generateSignatureCy(paramMap , CommonSysConst.getSysConfig().getCyAppSecret() , WXPayConstants.SignType.MD5)); |
|
|
|
|
|
|
|
|
|
log.info("============请求任务Start============="); |
|
|
|
|
log.info("城宇话费下单-请求参数: " + JSON.toJSONString(paramMap)); |
|
|
|
|
|
|
|
|
|
JSONObject jsonObject = HttpsUtils.doPostByCy(CommonSysConst.getSysConfig().getCyPostUrl()+ "/api/interface/recharge", paramMap); |
|
|
|
|
|
|
|
|
|
log.info("城宇话费下单-响应参数: " + jsonObject.toJSONString()); |
|
|
|
|
log.info("============请求任务End=============="); |
|
|
|
|
return jsonObject; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|